necessary as POST /api/v1/releases returns no HTTP body for a 409 request,
eg when the target_comitish already has a release.
The underlying problem is bigger:
The Client cannot handle error responses which do not contain a valid
JSON body.
* Prepare for Prioritize issues & update .gitignore for goland users
Signed-off-by: Outman9946 <outman99@hotmail.com>
* Fix issues
Signed-off-by: BetaCat0 <outman99@hotmail.com>
* Fix a format problem
Prepare for Prioritize issues & update .gitignore for goland users.
Target on the [Issue](https://github.com/go-gitea/gitea/issues/2616)
Signed-off-by: BetaCat0 <outman99@hotmail.com>
* Modified assignees field in issue struct for preperation of go-gitea/gitea#1884
* Modified assignees field in pr struct for preperation of go-gitea/gitea#1884
* Re-Added `Assignee`
* Added missing `assignees`
* fmt
* Modified assignees field in issue struct for preperation of go-gitea/gitea#1884
* Modified assignees field in pr struct for preperation of go-gitea/gitea#1884
* Re-Added `Assignee`
* Fix#95 by removing unused imports and using a non-pointer reader
Signed-off-by: Jonas Franz <info@jonasfranz.software>
(cherry picked from commit f46f7c8)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Replace *io.Reader with io.Reader
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Adding assets struct
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Replacing assets with attachments
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Using pointer to attachment instead of copy
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Adding swagger tags to attachment
Renaming Assets to Attachments
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Add client functions for attachments
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add EditAttachmentForm
Add CreateReleaseAttachment function
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add EditReleaseAttachment
Add DeleteReleaseAttachment
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add missing "Content-Type" to CreateReleaseAttachment
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Using reader for uploading file
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Use io.Copy instead of part.Write
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Add error checking
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Replace Attachments with Assets to make API Github compatible
Signed-off-by: Jonas Franz <info@jonasfranz.de>