Commit Graph
4 Commits
Author SHA1 Message Date
Lunny Xiaoandtechknowlogick 09fb036ad6 fix upload attachments (#6481)
* fix upload attachments

* add migration for new column uploader_id on table attachment

* fix imports sequence
2019-04-02 15:25:05 -04:00
Jonas FranzandBo-Yi Wu 9a5e628a7e Add Attachment API (#3478)
* Add Attachment API
* repos/:owner/:repo/releases (add attachments)
* repos/:owner/:repo/releases/:id (add attachments)
* repos/:owner/:repo/releases/:id/attachments
* repos/:owner/:repo/releases/:id/attachments/:attachment_id

Signed-off-by: Jonas Franz <[email protected]>

* Add unit tests for new attachment functions
Fix comments

Signed-off-by: Jonas Franz <[email protected]>

* fix lint

* Update vendor.json

Signed-off-by: Jonas Franz <[email protected]>

* remove version of sdk

Signed-off-by: Jonas Franz <[email protected]>

* Fix unit tests
Add missing license header

Signed-off-by: Jonas Franz <[email protected]>

* Add CreateReleaseAttachment
Add EditReleaseAttachment
Add DeleteReleaseAttachment

Signed-off-by: Jonas Franz <[email protected]>

* Add filename query parameter for choosing another name for an attachment

Signed-off-by: Jonas Franz <[email protected]>

* Fix order of imports

Signed-off-by: Jonas Franz <[email protected]>

* Restricting updatable attachment columns

Signed-off-by: Jonas Franz <[email protected]>

* gofmt

Signed-off-by: Jonas Franz <[email protected]>

* Update go-sdk
Replace Attachments with Assets

Signed-off-by: Jonas Franz <[email protected]>

* Update go-sdk

Signed-off-by: Jonas Franz <[email protected]>

* Updating go-sdk and regenerating swagger

Signed-off-by: Jonas Franz <[email protected]>

* Add missing file of go-sdk

Signed-off-by: Jonas Franz <[email protected]>

* Change origin of code.gitea.io/sdk to code.gitea.io/sdk
Update code.gitea.io/sdk

Signed-off-by: Jonas Franz <[email protected]>

* Update swagger

Signed-off-by: Jonas Franz <[email protected]>

* Update updateAttachment
2018-03-06 09:22:16 +08:00
Ethan KoenigandBo-Yi Wu 66c803fae2 MySQL, Postgres integration tests in drone (#1638)
* MySQL, Postgres integration tests in drone

* Fix .drone.yml

* sign drone

* resign drone
2017-04-30 14:30:12 +08:00
Bo-Yi WuandGitHub fa2a513c62 feat: add download count field and unit testing for attachment. (#1512)
* feat: add download count field and unit testing.

* fix: unit testing

* refactor: improve testing.

* fix: update comment

* add default value.

Signed-off-by: Bo-Yi Wu <[email protected]>
2017-04-20 10:31:31 +08:00