* 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>
* Added assets (attachments) to the releases.
- Added three new endpoints to the release api for attachments.
- List assets: GET /repos/:owner/:repo/releases/:id/assets
- Get single asset: GET /repos/:owner/:repo/releases/assets/:id
- Get /repos/:owner/:repo/releases/latest` that gets the latest published full release for the repository. Draft releases and prereleases are not returned by this endpoint.
Signed-off-by: Petrisor Lacatus <placatus@ptc.com>
* Adding time tracker api
* Adding swagger support
* Adding GetMyTrackedTimes
* Adding swagger support
* Fixed package collision
* Adding documentation
* Replacing []*TrackedTime with TrackedTimes
* Adding GetRepoTrackedTimes
* Changing endpoint of GetUserTrackedTimes
See go-gitea/gitea/pull/2211
Signed-off-by: Jonas Franz <email@jfdev.de>
* Add Issue webhook payload
* Add copyright header
* Whoops, wrote license header in wrong file...
* Move fields of PR/Issue payload to BaseIssuePayload
* Fix license header
* remove BaseIssuePayload
* Add comment to IssuePayload.JSONPayload
* Fix comment mentioning IssuePayload
* Reorder structs
* Mimic GitHub webhooks
Since the Gitea webhooks currently mimic for a big part the way GitHub does webhook, issue comments HookIssueActions have been removed to be added again at a later stage and milestone_set and milestone_cleared have been changed to milestoned and demilestoned, respectively.
* Change also constant names