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
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
Ethan Koenig
fc9011e1a1
Require password when creating user ( #74 )
2017-10-02 08:08:12 +03: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
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
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
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
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
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
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
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
Antoine GIRARD
f5de21caad
Implement GPG related api ( #36 )
...
* Implement method for calling gpg related api
2017-01-21 03:24:48 +01:00
Ethan Koenig
61a9dda39e
Rename gitea/releases.go -> gitea/release.go ( #34 )
2017-01-01 10:20:21 +08:00
Ethan Koenig
5266f2bd7b
Functions for releases
2016-12-31 10:19:50 +01:00
Bo-Yi Wu
2487ebd26e
replac go fmt with gofmt command.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-31 10:19:06 +01:00
Ethan Koenig
0b35be3070
Functions for forks
2016-12-27 11:21:16 -05:00
Ethan Koenig
d628d07f73
Webhook functions for organizations ( #26 )
2016-12-24 10:50:46 +08:00
Thomas Boerger
46f52f751d
Merge pull request #27 from ethantkoenig/collaborators
...
Functions for Collaborators
2016-12-22 09:11:55 +01:00
Ethan Koenig
54a391b88f
Functions for Collaborators
2016-12-21 11:05:53 -05:00
Martin Hebnes Pedersen
76837c0ea4
Backward compatibility (username vs. login)
...
Reintroduce the username field for user object on JSON marshal to fix backward
compatibility. Fixes Drone 0.4 compatibility issues.
2016-12-16 01:08:43 +01:00
Ethan Koenig
559190dbdc
EditTeamOption struct ( #25 )
2016-12-08 10:20:10 +08:00
Kim "BKC" Carlbäcker
140df7f34c
Tag-hooks are useless without the shasum ( #21 )
2016-11-29 15:37:12 +08:00
Kim "BKC" Carlbäcker
4ea32995e4
More endpoints for issue-api
2016-11-28 07:47:09 +01:00
Lunny Xiao
0d0c73819d
ask for go get from code.gitea.io/sdk/gitea
2016-11-11 21:52:21 +08:00
Lunny Xiao
c05a7bb741
bug fixed & lint fixed
2016-11-10 23:08:54 +08:00
Kim "BKC" Carlbäcker
cc453bfe27
Merge pull request #9 from go-gitea/fix/github-compliance
...
GitHub-API compliance
2016-11-10 12:33:06 +01:00
Matthias Loibl
156c90f41d
Merge pull request #12 from lunny/go_lint_fix
...
WIP: fix most of all the lint errors
2016-11-10 11:00:57 +01:00
Lunny Xiao
c9135ef778
fix most of all the lint errors
2016-11-10 17:44:00 +08:00
Kim "BKC" Carlbäcker
163100bc1a
Merge pull request #7 from go-gitea/fix/issue-comment
...
Finish Issue-Comments
2016-11-10 10:24:19 +01:00