* Implemented basic api endpoint to manage deadlines
* Fixed checking for permissions
* Updating a deadline from the ui is now entirely done via the api
* cleanup
* Cosmetics
* fixed lint + fmt
* Added swagger model definition for deadline response
* Updated gitea-sdk
* Updated gitea-sdk
* More cleanup
* Generate swagger json
* Merge branch 'master' of https://github.com/go-gitea/gitea into issue-due-date-api
# Conflicts:
# public/swagger.v1.json
* Fixed permission to update a deadline via api
* Re-added form to change a deadline
* Added client-side validation + not ignore error messages from the api
* Added locale for error message
* Merge branch 'master' of https://github.com/go-gitea/gitea
# Conflicts:
# models/issue_comment.go
* Proper date validation
* Fixed indention
* moved css to css file
* added documentation for error codes
* after merge cleanup
* Added swagger description
* DO NOTHING BUT TRIGGER THAT F*CKIN CI SO IT PICKS UP THE LATEST COMMIT AS IT SHOULD
* DO NOTHING BUT TRIGGER THAT F*CKIN CI SO IT PICKS UP THE LATEST COMMIT AS IT SHOULD
* regenerated stylesheets
Fix all the resting errors to have a valid swagger file.
They are still some warnings but nothing blocking.
Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely.
Fix#4088 by activating validation in drone
Should fix#4010.
* Partial fix for #4010
Swagger needs a comment line above each swagger:response comment -- it
uses these to populate the description: fields. Adding minimal text
for now on the way to getting swagger validate to pass. Many standard
swagger client libraries will not work at all with gitea until validate
passes, so prioritizing that over better descriptions for now.
Signed-off-by: Steve Traugott <[email protected]>
* 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