Jonas Franz
ac8746b2cf
Add option for client with custom http client ( #159 )
2019-04-14 23:29:52 +03:00
Serhii Kuts
ad9bcd6a96
Add method to set Sudo header ( #144 )
2019-02-15 17:32:08 -05:00
Norwin Roosen
bd7704a5f0
Client: handle 409 HTTP code
...
necessary as POST /api/v1/releases returns no HTTP body for a 409 request,
eg when the target_comitish already has a release.
The underlying problem is bigger:
The Client cannot handle error responses which do not contain a valid
JSON body.
2018-12-04 22:57:38 +01:00
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
Lunny Xiao
c9135ef778
fix most of all the lint errors
2016-11-10 17:44:00 +08:00
Kim "BKC" Carlbäcker
fea83e692a
Merge branch 'api-pull-request-support' of https://github.com/lstahlman/go-gogs-client
2016-11-09 19:57:21 +01:00
Thomas Boerger
4218c36205
Moved source files into subfolder
2016-11-07 11:26:36 -02:00