Commit graph

8 commits

Author SHA1 Message Date
Lauris BH
d5a42771e7
Revert PR #133 (#140) 2019-01-27 13:35:53 +02:00
Norwin
6abdddefe3 make Release.Target a required parameter (#133) 2018-12-04 18:03:21 -05:00
Jonas Franz
c026786979 Add Attachment API (#90)
* 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>
2018-02-28 11:17:30 +08:00
Vlad Temian
a184f2d334 Run go fmt for the entire project (#85) 2018-01-09 02:26:05 +02:00
Ethan Koenig
1da52cf95f Updates to swagger documentation (#77) 2017-11-12 11:10:33 +02:00
Stefan Lacatus
11e0aa8cd4 Added read-only attachments to the Releases API (#63)
* 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>
2017-08-23 23:38:18 +02:00
Bo-Yi Wu
58bcff5dcc duplicated of json field (#47)
* duplicated of json field

* update json field name.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-04-16 07:07:55 +08:00
Ethan Koenig
61a9dda39e Rename gitea/releases.go -> gitea/release.go (#34) 2017-01-01 10:20:21 +08:00
Renamed from gitea/releases.go (Browse further)