2
0
Commit Graph

1300 Commits

Author SHA1 Message Date
Sandro Santilli
fefdd3bbaf More... 2016-11-07 17:30:04 +01:00
Sandro Santilli
353e6c4cfc More MixedCase consts 2016-11-07 17:24:59 +01:00
Sandro Santilli
78d721a905 ACCESS_MODE_* -> AccessMode* 2016-11-07 17:20:37 +01:00
Sandro Santilli
d02733c669 More MixedCase consts 2016-11-07 17:08:21 +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
0407d5f9cb Merge pull request #108 from go-gitea/go-sdk
Replaced gogits go-gogs-client with go-sdk
2016-11-07 16:31:17 +01:00
Thomas Boerger
8370af17f2 Replaced go-gogs-client with go-sdk imports 2016-11-07 16:10:32 +01:00
Thomas Boerger
5d0735606e Fixed links to sdk docs 2016-11-07 16:10:32 +01:00
Sandro Santilli
d90e33d6df Replace GOGS with GITEA in variable names
Still use GOGS_WORK_DIR and GOGS_CUSTOM env variables
as a fallback if the equivalent GITEA_* are not set,
warning user about the need for change.

Does not change "gogs" to "gitea" in webhook type name
Because "gogs" hook type is part of the API (routes) and used
in templates...

Closes #87
2016-11-07 16:05:18 +01:00
Rachid Zarouali
64eb34d9b3 Merge pull request #50 from 0xbaadf00d/feature/2583-disablehttpcloning
Disable HTTP cloning
2016-11-07 11:23:30 +01:00
Odin Ugedal
7bdb133b5b Use the rev-parsed sha1 commit id (#98)
Use the rev-parsed sha1 commit id in urls to repo files,
instead of the abbreviated version.
2016-11-06 19:15:44 -02:00
Odin Ugedal
b7d5cd5bfa Fix rendering of non-markdown readme files 2016-11-06 16:02:42 +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
Sandro Santilli
fed359462e Merge branch 'master' into feature/goimports 2016-11-05 22:54:20 +01:00
Andrey Nering
6dbb386d80 Refactor editorconfig middleware 2016-11-05 15:44:14 -02:00
Matthias Loibl
b2f20b4726 Fix imports found by goimports. 2016-11-05 17:56:35 +01:00
Andrey Nering
c092a4b05f Fix 500 when repo has invalid .editorconfig
Creating a notice instead
2016-11-05 13:33:41 -02:00
Thomas Boerger
e859dd6f59 Executed go fmt for all files 2016-11-04 23:45:06 +01:00
Rémy Boulanouar
ac33536be0 Implementation of the feature to redirect to an external issue tracker 2016-11-04 09:06:54 +01:00
Andrey Nering
586ee6e836 Show issue/PR number on title 2016-11-03 20:28:05 -02:00
Rémy Boulanouar
61ec6729e6 Change import reference to match gitea instead of gogs (#37) 2016-11-03 10:29:56 -02:00
LefsFlare
886fbc696b Prevented user enumeration of valid users through HTTP status codes of login (#3639) (#3654) 2016-10-16 22:08:40 -04:00
Thibault Meyer
45e683cb05 rename variable + fix wiki link 2016-10-04 18:58:14 +02:00
Thibault Meyer
56d98c3349 Can disable GIT interactions by HTTP protocol 2016-09-18 10:54:33 +02:00
Unknwon
35f69d650b #3589 LoadRepoConfig after ORM is initialized 2016-09-02 23:18:37 -04:00
Daniel Oaks
6cdcdc8a31 Add the ability to explore organizations (#3573)
* Add ability to explore organizations

* Use right icon for org explore links
2016-09-01 09:08:05 -04:00
Unknwon
6eda7a4d63 #3559 fix template error 2016-08-31 13:59:23 -07:00
Unknwon
d7cd5f6363 models/login_source: code improvement 2016-08-31 01:22:41 -07:00
Unknwon
d2fc115de3 #3515 use alert instead 500 for duplicated login source name 2016-08-31 00:56:10 -07:00
无闻
e24f6b4f84 Support Editorconfig on web editor (#3512) 2016-08-30 16:47:22 -07:00
Andrey Nering
bb8ed178e6 Support Editorconfig on web editor 2016-08-30 20:30:47 -03:00
Unknwon
de6b7fff77 #2018 able to sync now for mirrors
- Refactor code to use sync.UniqueQueue
- Closes #3509
2016-08-30 16:18:33 -07:00
Unknwon
c5dea9e790 Web editor: support upload files 2016-08-30 05:23:59 -07:00
Unknwon
e40f64e2c9 router/repo: code refactoring 2016-08-30 02:08:38 -07:00
Unknwon
d3b79c7c68 #3459 code quality improvement 2016-08-29 20:00:06 -07:00
Thibault Meyer
09648cfb39 Load a set of predefined labels (#3459)
* Can use a predefined set of labels

* Change UI

* Fix HTML file indentation

* Avoid reading file from other directory (security issue)

* Apply a better fix

* Remove not used variable

* Merge upstream/develop

* Do modifications

* Raname

* remove binding + rename variable
2016-08-29 19:02:49 -07:00
Unknwon
a6b484f417 Web editor: fix cannot create new file in subdirectory 2016-08-29 00:10:21 -07:00
Unknwon
5c46cf1d3b #3516 enforce line ending to be \n from web editor 2016-08-28 05:32:10 -07:00
Unknwon
46d345920b Web editor: improve edit file 2016-08-28 04:31:42 -07:00
Unknwon
6aa50bcc06 Web editor: improve delete file process 2016-08-28 01:41:44 -07:00
Unknwon
45a2b44d41 Web editor: improve edit file tooltip 2016-08-27 15:25:01 -07:00
Unknwon
94b7161266 #3448 redirect if any after sign in 2016-08-27 15:07:02 -07:00
Unknwon
ea57b25d61 #3495 only start builtin SSH server after user finish installation 2016-08-27 12:25:22 -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