2
0
Commit Graph

4753 Commits

Author SHA1 Message Date
Ethan Koenig
d36428e981 Unit tests for models/action (#619) 2017-01-09 11:08:36 +08:00
Bo-Yi Wu
060f2f5ed0 docs: update zh-tw and zh-hk translations. (#604) 2017-01-08 17:15:55 +08:00
Ethan Koenig
beea7f9583 Add myself to MAINTAINERS (#609) 2017-01-08 11:25:22 +08:00
Manuel Kuhlmann
c0595127f1 Add default SSH_LISTEN_PORT config value (#603) (#607) 2017-01-08 11:14:45 +08:00
derSuessmann
59bc880e0d Add Keep email private (see issue #571). (#571)
- Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE.
- Add the new option to the install and admin/config pages.
- Add the new option to app.ini in the service section.
- Add the new option to the settings struct.
- Add English text strings to i18n.
- Add field KeepEmailPrivate to user struct.
- Add field KeepEmailPrivate to user form.
- Add option to UI.
- Add using noreply email address if user has "Keep Email Private".
An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit
messages (and hopefully all other git log relevant places). The
change relies on the fact that git commands should use
user.NetGitSig().
- Add hiding of email address in UI, if user has set "Keep Email Private".
- Add condition to show email address only on explore/users and user
pages, if user has not set "Keep Email Private".
- Add noreply email in API if set "Keep Email Private".
- Add a new service setting NO_REPLY_ADDRESS. The value of this
setting is used as the domain part for the user's email address in
git log, iff he decides to keep his email address private.
If the user decides to keep his email address private and this
option is not set 'noreply.example.org' is used, which no MTA
should send email to.

Add NO_REPLY_ADDRESS to conf/app.ini.
2017-01-08 11:12:03 +08:00
Ethan Koenig
e868bb82bd Unit tests for models/access.go (#606) 2017-01-08 11:10:53 +08:00
Ethan Koenig
47d2b91f76 API endpoint for subscribers (#598) 2017-01-07 11:13:02 +08:00
Andrey Nering
fd8165bbc4 Merge pull request #555 from ethantkoenig/tests/pull
Unit tests for models/pull.go
2017-01-06 19:19:18 -02:00
Andrey Nering
df3a195814 Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
Ethan Koenig
85b408be4b Unit tests for models/pull.go 2017-01-06 10:08:23 -05:00
Ethan Koenig
209bf52ade API endpoint for stargazers (#597) 2017-01-06 15:05:09 +08:00
Lunny Xiao
4875240bbc Make releases faster than before and resolved #490 (#588)
* make releases faster than before and resolved #490

* fix comment
2017-01-06 09:51:15 +08:00
Andrey Nering
e6244366cd Merge pull request #539 from andreynering/notifications-step-2
Notifications - Step 2
2017-01-05 11:53:01 -02:00
Thomas Boerger
d6f2ed2aa0 Added 1.0.1 to changelog (#594) 2017-01-05 21:17:40 +08:00
Thomas Boerger
3ffd3f1dc3 Clone tags within drone for proper version generation (#591) 2017-01-05 18:13:02 +08:00
Lunny Xiao
0d777e0a01 Add the note forked from gogs (#590)
* add the note forked from gogs

* make the sentence simple
2017-01-05 10:49:07 +01:00
Manuel Kuhlmann
6131c9e6c3 Fix unified diff view styling (#585)
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
2017-01-05 10:04:41 +08:00
Manuel Kuhlmann
654e5ec8d0 Fix diff split view coloring (#553) (#584)
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
2017-01-05 09:07:43 +08:00
Ethan Koenig
8103d4b5c7 Fix SQL bug in models/access (#583)
Previously got a 'relation repo_access does not exist' error in User_GetRepositoryAccesses
2017-01-05 08:57:54 +08:00
Berk Demirkır
ff369ac504 Check primary email address fields on CreateUser (#556)
* Check primary email address fields on CreateUser

As this check wasn't available, uid=1 (and possibly guests too, if registration is open) is able to register new users with existing email addresses. This leads to numerous 500 errors.

* Update user.go

* Lower the email first. Then check
2017-01-05 08:52:20 +08:00
Ethan Koenig
439ab34752 Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
Manuel Kuhlmann
9859e6e552 Rename .gogs to .gitea and comply with github template guidelines (#568) (#582)
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
2017-01-05 08:48:23 +08:00
Bo-Yi Wu
b853c50eff fix: Remove call to set GOMAXPROCS (#577) 2017-01-04 21:16:03 +08:00
Andrey Nering
690fa98560 Add pagination for notifications 2017-01-03 17:09:36 -02:00
Lunny Xiao
1420a613ed fix bug #564 (#567) 2017-01-03 16:27:11 +08:00
Lunny Xiao
18a88b582a Update xorm and dependencies vendor for feature to dump to other database (#565)
* update xorm and dependencies vendor for feature to dump to other database

* fix golint
2017-01-03 16:20:28 +08:00
Lunny Xiao
c8c21d4cbd bug fixed for fork repos (#560) 2017-01-03 12:41:10 +08:00
Lunny Xiao
2c8815931b build failed by deleting release by API (#562) 2017-01-03 11:45:56 +08:00
Kjell Kvinge
150da78704 Fix benchmarktests (#557) 2017-01-03 10:52:09 +08:00
Bo-Yi Wu
0e43f3a05d Update maintainer list for LGTM 2017-01-03 02:35:30 +01:00
Lunny Xiao
56cb67b4cc change the default action when deleting a release to not delete tag 2017-01-03 02:27:38 +01:00
Andrey Nering
d199d72e60 Showing index in front of issue title 2017-01-02 16:43:23 -02:00
Andrey Nering
64e641a641 More fine graned colors 2017-01-02 16:40:50 -02:00
Andrey Nering
65e85257c2 Do not get count on /api routers 2017-01-02 16:31:50 -02:00
Lunny Xiao
ae23263e5b fix config session missing data row & resolved #517 (#549) 2017-01-02 12:33:15 +08:00
Alvaro Aleman
34d39e1cf6 Provide description for the INSTALL_LOCK config option (#554) 2017-01-02 12:32:21 +08:00
Ethan Koenig
a28c58faae Release API endpoints 2017-01-02 00:10:52 +01:00
Andrey Nering
563d67cc33 Makefile: on Windows, executable should have ".exe" (#550) 2017-01-01 22:18:35 +08:00
Andrey Nering
cf5c1c9cd4 Merge pull request #543 from lunny/lunny/fallback_graceful_windows
Fix windows build broken by #416
2017-01-01 10:45:51 -02:00
Thiago Avelino
c2de95b28b UI config to toggle whether user email shows up in Explore Users (#336)
* UI config to toggle whether user email shows up in Explore Users

* Recommendation made by @tboerger
66a1c59fe7 (r94122732)

* fixed typo, rename ShowUserEmailInExplore to ShowUserEmail

* Fixed typo merged conflict

* Hide email in the user profile page

if you are active ShowUserEmail
ref https://github.com/go-gitea/gitea/pull/336#issuecomment-269843725

* Please replace MustBool() with MustBool(true)
2017-01-01 10:51:10 +08:00
Bastian Rinsche
4fbfb7afae Apply dockerfile updates to raspberry dockerfile (#548) 2017-01-01 10:25:17 +08:00
Bwko
eb2c526ae5 Replace pull request with issue at issue_template (#547) 2016-12-31 22:35:32 +08:00
Andrey Nering
ef0a8ce26f Merge pull request #545 from lunny/lunny/fix_ui_data_row_missing
Partially fix #484: fix admin ui data row missing
2016-12-31 10:40:14 -02:00
Lunny Xiao
d879320ab4 resolved #517: fix admin ui data row missing 2016-12-31 18:58:54 +08:00
Bwko
82bf5e85f5 Fix wrong anchors for non-latin headings (#3981) (#512)
Change Javascript regular expression to match non-latin characters
The regex comes from here: http://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters#comment22322603_150078

And this patch should fixed these two issues: #3919 #3843
2016-12-31 18:06:09 +08:00
Lunny Xiao
1110101591 resolved #485: when migrate empty wiki repo, then ignore (#541) 2016-12-31 17:34:34 +08:00
Ethan Koenig
49b4b17b91 Unit tests for token and update models 2016-12-31 10:17:45 +01:00
Lunny Xiao
8484d9647b fix windows build broken by #416 2016-12-31 17:16:02 +08:00
Schwobaland
d8821eec53 Restrict creating organisations by user (#193)
* restrict creating organizations based on right on user

* revert bindata.go

* reverse vendor lib

* revert goimports change

* set AllowCreateOrganization default value to true

* revert locale

* added default value for AllowCreateOrganization

* fix typo in migration-comment

* fix comment

* add coments in migration
2016-12-31 10:33:30 +08:00
Ethan Koenig
dc91fe23a6 API endpoints for forks (#509) 2016-12-31 09:15:45 +08:00