Commit graph

476 commits

Author SHA1 Message Date
Kasi Reddy
d95a6e0392 added recursive support to git trees api (#130) 2018-11-26 10:37:07 +02:00
Lunny Xiao
545830e497 Add repo trees (#94)
* add repo trees

* Update copyright
2018-11-24 13:03:22 +02:00
Lauris BH
59ddbdc4be Support for git refs listing API (#129) 2018-11-23 22:19:44 -05:00
Lunny Xiao
4f96d9ac89
add units for team (#127) 2018-11-07 16:26:53 +08:00
zeripath
c740b5dd58 Add zeripath to maintainers (#128)
I'm @zeripath I've committed several PRs to Gitea recently and would like to help push Gitea forward by becoming a maintainer.
2018-11-05 11:45:30 +08:00
Peter Hoffmann
11c860c8e4 fix: Add secret to all webhook's payload where it has been missing (#126)
affects webhooks for:
* Delete
* Fork
* IssueComment
* Release

Resolves: go-gitea/gitea#4732, go-gitea/gitea#5173
Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>
2018-10-27 22:55:26 +08:00
zeripath
2d00f9f4d4 Add deploy key changes (#125) 2018-10-24 17:58:56 +03:00
zeripath
86b999eaa8 Adjust keys api (#121)
Signed-off-by: Andrew Thornton <art27@cantab.net>
2018-10-22 14:30:51 +03:00
kolaente
1819385edd add myself to maintainers (#123) 2018-10-17 22:18:33 -04:00
Bo-Yi Wu
7072e1b688
fix golint path. (#124)
as title
2018-10-18 10:15:43 +08:00
kolaente
380b28413e Added "archived"-flag to repo struct (#122) 2018-10-05 22:59:49 +02:00
BetaCat
8718470818 Fix a format problem in admin_user.go (#118)
* Prepare for Prioritize issues & update .gitignore for goland users
Signed-off-by: Outman9946 <outman99@hotmail.com>

* Fix issues
Signed-off-by: BetaCat0 <outman99@hotmail.com>

* Fix a format problem
2018-09-01 00:14:12 +03:00
BetaCat
aa2397dec8 Prepare for prioritize issues & update .gitignore for goland users (#117)
Prepare for Prioritize issues & update .gitignore for goland users.
Target on the [Issue](https://github.com/go-gitea/gitea/issues/2616)

Signed-off-by: BetaCat0 <outman99@hotmail.com>
2018-08-30 22:29:03 +08:00
EnricoFerro
021567c9c1 Fix for missing field in EditUserOption (#114) 2018-08-23 17:32:09 +03:00
Alexey Terentyev
79a281c4e3 Add myself as a maintainer (#112) 2018-07-02 10:44:48 +08:00
Jonas Franz
9c719de11f Add GetMyUserInfo (#111)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2018-06-24 14:13:26 +03:00
techknowlogick
ec80752c95 add ID as an output for token API and Delete token (#110)
* add ID as an output for token API

* add ability to delete token via SDK
2018-06-20 12:04:31 +03:00
Lunny Xiao
b2308e3f70 add release hook types (#107) 2018-05-18 14:06:32 +08:00
Lunny Xiao
7fa627fa5d
add more webhook types (#106) 2018-05-10 20:54:05 +08:00
kolaente
40e36e1d2f Added deadline structs for api (#105)
* Added deadline structs for api

* fixed lint + fmt
2018-05-03 17:30:21 +03:00
kolaente
1c8d12f79a Added user locale setting (#104) 2018-05-01 14:15:19 +03:00
kolaente
142acef5ce Preparation for Issue due dates (go-gitea/gitea#2533) (#103)
* Added deadline for issue

* Added deadline for pull requests

* Added comment for swagger date format
2018-04-17 08:54:29 +08:00
Jonas Franz
790adaa56b Remove coverage badge (#101) 2018-04-11 08:54:16 +08:00
Jonas Franz
ea7eeee318 fix golint (#102) 2018-04-07 22:59:28 +08:00
Lauris BH
417abc7c5d Add closed at field for issue and pull request (#93)
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2018-03-29 15:34:44 +08:00
kolaente
92585b27a0 Modified assignees field in issue struct for preperation of go-gitea/gitea#3705 (#99)
* Modified assignees field in issue struct for preperation of go-gitea/gitea#1884

* Modified assignees field in pr struct for preperation of go-gitea/gitea#1884

* Re-Added `Assignee`

* Added missing `assignees`

* fmt
2018-03-22 22:32:16 +08:00
Jonas Franz
39c609e903 Add myself as a maintainer (#98) 2018-03-16 21:51:11 +02:00
kolaente
fa91af7569 Modified assignees field in issue struct for preperation of go-gitea/gitea#1884 (#97)
* Modified assignees field in issue struct for preperation of go-gitea/gitea#1884

* Modified assignees field in pr struct for preperation of go-gitea/gitea#1884

* Re-Added `Assignee`
2018-03-06 09:22:45 +08:00
Jonas Franz
cdbef99766 Remove unused imports and use a non-pointer reader (#96)
* Fix #95 by removing unused imports and using a non-pointer reader

Signed-off-by: Jonas Franz <info@jonasfranz.software>

(cherry picked from commit f46f7c8)
Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Replace *io.Reader with io.Reader

Signed-off-by: Jonas Franz <info@jonasfranz.software>
2018-03-02 22:48:43 +08:00
Jonas Franz
c026786979 Add Attachment API (#90)
* Adding assets struct

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Replacing assets with attachments

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Using pointer to attachment instead of copy

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Adding swagger tags to attachment
Renaming Assets to Attachments

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Add client functions for attachments

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add EditAttachmentForm
Add CreateReleaseAttachment function

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add EditReleaseAttachment
Add DeleteReleaseAttachment

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add missing "Content-Type" to CreateReleaseAttachment

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Using reader for uploading file

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Use io.Copy instead of part.Write

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Add error checking

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Replace Attachments with Assets to make API Github compatible

Signed-off-by: Jonas Franz <info@jonasfranz.de>
2018-02-28 11:17:30 +08:00
Serhii Kuts
649bdad70e Add Search users support (#92)
Signed-off-by: Serhii Kuts <sergeykuc@gmail.com>
2018-02-15 19:59:44 -06: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
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