2
0
Commit Graph

121 Commits

Author SHA1 Message Date
Unknwon
40fa61209e Fix #3391 2016-08-11 15:29:39 -07:00
Robin Lambertz
78100c899e Add MaxRepoCreation to EditUser API (#2781) 2016-08-11 11:49:31 -07:00
Unknwon
17a339a723 #2780 code clean up 2016-08-11 11:35:46 -07:00
Robin Lambertz
a86d6cb4e5 Add AddCollaborator API Endpoint (#2780)
* Add AddCollaborator API Endpoint

* Add optional Permission to AddCollaborator endpoint

* Use APIContext
2016-08-11 11:23:25 -07:00
lstahlman
c2b1692525 Add committer information to API and Webhooks. Also fixes #3271 (#3414) 2016-08-09 22:01:57 -07:00
Unknwon
1d60472f5a routers/api: rename handlers to be unexported 2016-08-04 17:08:01 -07:00
Unknwon
8fbc5f27e5 #2162 completely disable builtin issue tracker when enable external tracker 2016-08-04 16:32:02 -07:00
Unknwon
8b01b7cb01 #3290 better code structure and batch minor improvements 2016-08-03 11:51:22 -07:00
lstahlman
6e884bba00 Additional API support for labels (#3290)
* Add API support for labels.

* Error handling for adding/replacing multiple issue labels

* Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions

* Additional code cleanup
2016-08-03 09:24:16 -07:00
Richard Mahn
5927e35bf2 Added Full Name to CreateUser api call (#3333) 2016-07-27 02:43:06 +08:00
Unknwon
631af92670 #1384 add pagination for repositories 2016-07-24 14:32:46 +08:00
Unknwon
48b0d21673 Refactor User.Id to User.ID 2016-07-24 01:08:22 +08:00
Unknwon
11e7ac2a93 Use struct for UI settings 2016-07-24 00:23:54 +08:00
Unknwon
2a81a16777 api: fix panic if anonymous user request admin API
Add sign in check before check user account level
2016-07-23 17:56:37 +08:00
Unknwon
aaf133c4c1 Update locales and .gopmfile 2016-07-17 09:25:30 +08:00
Unknwon
f082ae1207 models/webhook: restrict deletion to be explicitly with repo and org ID 2016-07-17 08:33:59 +08:00
Dennis Chen
22b5a9834f api: delete repository webhooks (#3275)
Allows the deletion of a webhook from a repository at the
/:user/:repo/hooks/:id endpoint.

Solves drone/drone issue #1603.

Signed-off-by: Dennis Chen <barracks510@gmail.com>
2016-07-17 08:08:38 +08:00
Unknwon
226cfcc702 #3274 fix can't get webhook detail of organization 2016-07-16 01:02:55 +08:00
Unknwon
dcb0a41e41 #2854 fix no mail notification when issue is closed/reopened 2016-07-16 00:36:39 +08:00
lstahlman
33632b05c1 Add timestamps to repository api response (#3255)
Additional properties: created_at, updated_at
2016-07-12 06:28:51 +08:00
lstahlman
59c1b0f090 Extend the API to include more repository properties (#3249)
Adds description, stars_count, forks_count, watchers_count and
open_issues_count.
2016-07-11 07:56:15 +08:00
Unknwon
0aa255fd7d #3057 retrieve webhook with repo_id
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
2016-07-08 13:57:09 +08:00
Unknwon
631defa243 #3058 #3059 support correct page size and link header 2016-07-04 17:27:06 +08:00
Unknwon
16fc2ca8d8 #809 fix wrong closed issue count when create closed issue via API
Add start count corrector for Repository.NumClosedIssues
2016-05-27 18:23:39 -07:00
Unknwon
0afa4c9bdc #809 able to set issue state to closed when create 2016-05-11 12:19:26 -04:00
Unknwon
01d7c26fc3 api/admin: add/remove organization team repository 2016-04-04 19:41:34 -04:00
Unknwon
b02935e40b #1692 add admin APIs to add/remove a user from teams 2016-03-25 18:04:02 -04:00
Unknwon
ee2b4acddf Fix status code 2016-03-21 12:57:04 -04:00
Unknwon
ebdc5609b0 Change list teams API to non-admin specific 2016-03-21 12:53:04 -04:00
Unknwon
8cb188e30e #1692 api: admin list and create team under organization 2016-03-21 12:47:54 -04:00
Unknwon
c06966648d #1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
2016-03-13 23:20:22 -04:00
Unknwon
838956a918 Convert all API handers to use *context.APIContext 2016-03-13 18:49:16 -04:00
Unknwon
e84cef16cf #13 finish user and repository search
Both are possible on explore and admin panel
2016-03-11 15:33:12 -05:00
Unknwon
529f8d9b4b Rename module: middleware -> context 2016-03-11 11:56:52 -05:00
Unknwon
69f420490d Make markdown as an independent module 2016-02-20 17:10:05 -05:00
Unknwon
99accec8fd Minor fix for #2506 2016-02-02 17:07:40 -05:00
Antoine GIRARD
70aadc35aa Corrections following recommendations 2016-01-28 20:51:19 +01:00
Antoine GIRARD
92798f5ebe Handling error for the API request and add commments
[ci skip]
2016-01-28 20:51:19 +01:00
Antoine GIRARD
bbf8b7f8d6 Update link for documentation (Temporary https://gist.github.com/sapk/df64347ff218baf4a277)
[ci skip]
2016-01-28 20:51:19 +01:00
Antoine GIRARD
56e11cdc81 Near ready 2016-01-28 20:51:19 +01:00
Unknwon
498a110d41 require token for list my orgs 2016-01-09 13:32:19 +08:00
Unknwon
a184fae2ad fix #2360 2016-01-08 08:49:03 +08:00
Unknwon
4e1f46f983 #1692 APIs: Users Followers
- User profile un/follow
- List user's followers/following
2015-12-21 04:24:11 -08:00
Unknwon
7d4293616d #1692 API: admin create repo 2015-12-17 22:57:41 -05:00
Unknwon
6f6c77a6cd #1692 add organization APIs 2015-12-17 02:28:47 -05:00
Unknwon
db5c4abcb2 #1692 add user email APIs 2015-12-15 22:57:18 -05:00
Unknwon
adb4784fe0 rename import path 2015-12-15 17:25:45 -05:00
Unknwon
4d4e36aaa9 #1938 #1374 disable password change for non-local users 2015-12-10 19:02:57 -05:00
Unknwon
0638ee1b76 move out git module and #1573 send push hook 2015-12-09 20:46:05 -05:00
Unknwon
4df8494a60 #1984 Better mirror repo management 2015-12-08 20:06:12 -05:00