2
0
Commit Graph

157 Commits

Author SHA1 Message Date
Denis Denisov
6669a9d490 Fix random string generator (#384)
* Remove unused custom-alphabet feature of random string generator

Fix random string generator

Random string generator should return error if it fails to read random data via crypto/rand

* Fixes variable (un)initialization mixed assign
Update test GetRandomString
2016-12-20 13:32:02 +01:00
Lunny Xiao
1b6d07d8d8 fixed vulnerabilities (#392) 2016-12-15 16:49:06 +08:00
Ethan Koenig
68806512c6 Bug fix for edit-hook API endpoint 2016-12-09 20:11:56 +01:00
Ethan Koenig
a0c1e6540b Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
2016-12-07 12:55:24 +01:00
Kim "BKC" Carlbäcker
2947e7b332 [API] Pull Requests (#248) 2016-12-02 12:10:39 +01:00
Kim "BKC" Carlbäcker
5bd365255c Linting 2016-12-02 09:31:44 +01:00
Kim "BKC" Carlbäcker
88ea8a5114 GitHub API Compliance (& linting) 2016-12-02 09:18:15 +01:00
Kim "BKC" Carlbäcker
e64c4ef56b Add undocumented endpoint for /repositories/:id 2016-12-02 09:18:15 +01:00
Kim "BKC" Carlbäcker
ea3af7405b Fix breakage from vendor-update 2016-11-29 11:50:22 +01:00
Lunny Xiao
7e88589865 golint fixed for modules/auth 2016-11-27 21:39:06 +08:00
Lunny Xiao
c9d61f0e2a Golint fixed for modules/setting (#262)
* golint fixed for modules/setting

* typo fixed and renamed UNIXSOCKET to UnixSocket
2016-11-27 18:14:25 +08:00
Lunny Xiao
9f958b7084 Golint fixed for modules/context 2016-11-25 14:53:59 +08:00
Lunny Xiao
ae73f40600 golint fixed for routers (#208) 2016-11-24 15:04:31 +08:00
Ethan Koenig
875d9751aa API endpoints for stars 2016-11-16 22:51:54 -05:00
Sandro Santilli
d246d7acb7 Fix import path of go-sdk (#141)
From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea
2016-11-11 17:39:44 +08:00
Sandro Santilli
acb138c244 Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
2016-11-10 17:24:48 +01:00
Sandro Santilli
740e0514cf And others 2016-11-07 17:53:22 +01:00
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