2
0
Commit Graph

140 Commits

Author SHA1 Message Date
Sandro Santilli
fefdd3bbaf More... 2016-11-07 17:30:04 +01:00
Sandro Santilli
78d721a905 ACCESS_MODE_* -> AccessMode* 2016-11-07 17:20:37 +01:00
Sandro Santilli
f368ff5d88 Use MixedCase constant names
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
2016-11-07 17:05:08 +01:00
Thomas Boerger
8370af17f2 Replaced go-gogs-client with go-sdk imports 2016-11-07 16:10:32 +01:00
Sandro Santilli
2cc11efdcf Replace gogits/git-module dependency with go-gitea/git (#94)
* Replace gogits/git-module dependency with go-gitea/git

Fixes #92

* Remove git alias for git module import (not needed)
2016-11-06 11:18:34 -02:00
Rémy Boulanouar
61ec6729e6 Change import reference to match gitea instead of gogs (#37) 2016-11-03 10:29:56 -02:00
Unknwon
d2fc115de3 #3515 use alert instead 500 for duplicated login source name 2016-08-31 00:56:10 -07:00
Andrey Nering
bb8ed178e6 Support Editorconfig on web editor 2016-08-30 20:30:47 -03:00
Unknwon
d3b79c7c68 #3459 code quality improvement 2016-08-29 20:00:06 -07:00
Unknwon
925f5f7673 #2966 code cleanup 2016-08-26 13:40:53 -07:00
Iwan Budi Kusnanto
1c10e03689 issues comment API : list, create, edit (#2966)
add `since` query string support to list issue comment
2016-08-26 11:23:21 -07:00
Unknwon
61bde9440a Web editor: improve code quality 2016-08-24 21:35:03 -07:00
Kurt Madel
95f5413f4f added support to set pull_request event from api (#3513) 2016-08-24 20:44:58 -07:00
Unknwon
36198ec56a #3383 code cleanup 2016-08-24 16:05:56 -07:00
lstahlman
bd2fa73b62 Additional API support for milestones (#3383) 2016-08-24 15:18:56 -07:00
Kim Carlbäcker
8529a9e9ec Issues can be closed via API (#3170) (#3479)
* Issues can be closed via API

* Error-checking is nice xD

* EditIssueOption.Status => State

* Use const instead of string-literal
2016-08-23 09:09:32 -07:00
Unknwon
b36d801abe models/issue: improve quality and performance of NewIssue function 2016-08-15 18:40:32 -07:00
Unknwon
154b397e8f Replace convert.To with APIFormat calls 2016-08-14 04:17:26 -07:00
Unknwon
a2c880ef17 #2246 fully support of webhooks for pull request 2016-08-14 03:32:24 -07:00
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