Commit graph

495 commits

Author SHA1 Message Date
James Strachan
0489f9e4e0 fixes #88 to handle 422 better (#89)
lets return an error if a 422 occurs and return the error message to the caller in case there is missing or invalid data in the request
2018-02-03 19:30:41 -06:00
Vlad Temian
a184f2d334 Run go fmt for the entire project (#85) 2018-01-09 02:26:05 +02:00
Morgan Bazalgette
7296e60b71 add myself to maintainers (#87) 2018-01-06 22:08:06 +02:00
Bo-Yi Wu
bc3f4f78c7 update LGTM pattern (#86) 2018-01-03 15:08:25 +02:00
Vlad Temian
79eee8f12c Add ReadOnly field supporting writable deploy keys. (#84) 2017-12-20 00:57:50 -06:00
Vlad Temian
24adbb03ee Add fingerprint to ssh key endpoints. (#82) 2017-11-28 22:53:25 +08:00
Antoine GIRARD
4319a1eaff Add api lfs locks struct (#78)
* Add locks struct

* Add missing delete request
2017-11-20 14:55:09 +08:00
Ethan Koenig
1da52cf95f Updates to swagger documentation (#77) 2017-11-12 11:10:33 +02:00
Morlinest
4eb2c55b4c Update MAINTAINERS (#75) 2017-10-07 02:51:10 -05:00
Ethan Koenig
fc9011e1a1 Require password when creating user (#74) 2017-10-02 08:08:12 +03:00
David Schneiderbauer
60c60488f2 add @daviian as maintainer (#72)
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-09-20 09:08:16 +08:00
CTllo
2a89a15ce3 Fix request URL in ServerVersion function (#71)
"api/v1"  is useless, it is already included in func (c *Client)getParsedResponse
2017-09-13 11:13:23 +03:00
Thomas Boerger
efc028eef5 Merge pull request #70 from go-gitea/drone-upgrade
Changes for latest DroneCI
2017-09-07 19:16:44 +02:00
Thomas Boerger
de5155068d
Changes for latest DroneCI 2017-09-07 19:11:38 +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
Antoine GIRARD
bc243ad6c2 Improve swagger doc (#67)
* Add some swagger response type

* Add some swagger parameters

* Add some swagger parameters

* Use HookList in place of []*Hook
2017-08-21 16:23:17 +08:00
Jonas Franz
82df6bc38d Improving swagger doc @ Feature/timetracker (#69)
* Changing swagger:response to swagger:parameters

* Moving in:body to Time
2017-08-13 23:36:03 +03:00
Patrick G
90a25c110c Comment help text for issues (#68) 2017-08-09 07:26:27 +08:00
Jonas Franz
c7c050c877 Feature/timetracker (#65)
* 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>
2017-07-28 09:12:22 +03:00
Antoine GIRARD
9990008755 Fix typo (#64) 2017-07-08 22:16:14 +08:00
Bo-Yi Wu
0ccfe01abb switch gitter to discord for drone. (#62)
* switch gitter to discord for drone.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* add changed status

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-16 10:46:36 +08:00
Andrey Nering
4f26b8d84e Merge pull request #61 from cez81/cez81_as_maintainer
Add myself as maintainer
2017-06-12 10:21:39 -03:00
Jonas Östanbäck
5d11de049c Add myself as maintainer 2017-06-12 13:18:48 +02:00
Bo-Yi Wu
0773f62d7c replace gitter chat with discord. (#60) 2017-06-11 09:18:50 +02:00
guyzmo
8cff72208a Added Parent property to the repo API (#59)
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
2017-05-06 09:37:21 +08:00
Lauris BH
1350cdb0d0 Add @lafriks as maintainer (#57) 2017-05-04 19:35:58 +02:00
Lauris BH
59cdd51b9b Add new field "Empty" to Repository structure (#56)
* Add new field "Empty" to Repository structure

* Fix Empty type to bool

* Add Size property to Repository structure
2017-05-04 21:38:15 +08:00
Ethan Koenig
a39112334b Support for repo creation/deletion webhooks (#55) 2017-05-04 11:19:40 +08:00
Jonas Östanbäck
e1c76d42f2 Add /repos/:owner/:repo/mirror-sync (#54) 2017-05-02 23:01:11 +08:00
Antoine GIRARD
d2f87fd3f9 Add swagger descriptions and needed structs (#53)
* Add swagger descriptions and needed structs

* Remove missed TODO comment
2017-04-30 23:33:16 +08:00
Jonas Östanbäck
0c3a0b0b5e Add created_at and updated_at in PR json (#52) 2017-04-27 08:40:26 +08:00
Antoine GIRARD
01c61b83ae Adding myself to maintainers (#51) 2017-04-16 20:38:44 +08: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
Antoine GIRARD
cad003b491 Migrate WatchInfo + add some methods (#50) 2017-04-15 22:32:48 +08:00
Kim "BKC" Carlbäcker
1bec42c930 Status-API (#49)
* Initial support for Status-API

* Linting and Copyright Notice

* gofmt by hand 

Look maa'! No hands!
2017-03-22 12:44:28 +08:00
Funzi
80778ed092 fixed backend path for CreateIssueComment (#46) 2017-03-13 09:37:12 +08:00
Thomas Boerger
9ceaabb8c7 Merge pull request #45 from sapk-fork/add-commit-payload-verification
Add the verification payload in commits.
2017-03-09 23:08:57 +01:00
Antoine GIRARD
4878372177 Add missing ListGPGKeys of a user (#44) 2017-03-09 09:32:59 +08:00
Antoine GIRARD
9da3bab000
Add the verification payload in commits.
Follow :
- https://developer.github.com/v3/git/commits/
- https://developer.github.com/v3/repos/commits/
2017-03-08 18:22:43 +01:00
Thomas Boerger
8807a1d2ce Merge pull request #43 from typeless/server-version
Add new API 'ServerVersion'
2017-03-04 11:22:44 +01:00
Mura Li
439ea6ca75 Add comment for exported struct and method 2017-03-03 22:55:14 +08:00
Mura Li
ec03aeb834 Add new API 'ServerVersion' 2017-03-03 22:45:18 +08:00
Andrew Boyarshin
577184279b Introduce Wiki markdown API option (#42)
Amended with string to bool change.

Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
2017-02-24 23:00:14 +08:00
Aaron Walker
06902fe195 expose url field in issues and pull requests (#39) 2017-02-19 19:17:32 +08:00
Thomas Boerger
c662dd0303 Merge pull request #41 from andreynering/api-repo-mirror
Add "mirror" field to repo
2017-02-19 11:10:49 +01:00
Andrey Nering
4d46bf4f5e Add "mirror" field to repo 2017-02-18 14:09:11 -02:00
Morgan Bazalgette
87b8065c0d Issue webhook payload (#38)
* 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
2017-02-13 19:50:09 +08:00
Thomas Boerger
014bf8c4f2 Merge pull request #37 from Bwko/contrib
Update contributing & maintainers file
2017-01-24 22:05:04 +01:00
Bwko
19ee043d37
Update contributing & maintainers file 2017-01-24 21:35:11 +01:00
Antoine GIRARD
f5de21caad Implement GPG related api (#36)
* Implement method for calling gpg related api
2017-01-21 03:24:48 +01:00