Skip to content

Commit 47ba722

Browse files
authored
Merge branch 'master' into refactor_issues-subscription
2 parents 13879f8 + ac0fb36 commit 47ba722

File tree

210 files changed

+7167
-4716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+7167
-4716
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ _test
1212

1313
# MS VSCode
1414
.vscode
15+
__debug_bin
1516

1617
# Architecture specific extensions/prefixes
1718
*.[568vq]

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7+
## [1.10.0-RC2](https://github.com/go-gitea/gitea/releases/tag/v1.10.0-rc2) - 2019-10-30
8+
* BREAKING
9+
* Fix deadline on update issue or PR via API (#8698)
10+
* Hide some user information via API if user doesn't have enough permission (#8655) (#8657)
11+
* BUGFIXES
12+
* Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528) (#8618)
13+
* Fix milestone close timestamp (#8728) (#8730)
14+
* Fix 500 when getting user as unauthenticated user (#8653) (#8663)
15+
* Fix 'New Issue Missing Milestone Comment' (#8678) (#8681)
16+
* Use AppSubUrl for more redirections (#8647) (#8651)
17+
* Add SubURL to redirect path (#8632) (#8634)
18+
* Fix template error on account page (#8562) (#8622)
19+
* Allow externalID to be UUID (#8551) (#8624)
20+
* Prevent removal of non-empty emoji panel following selection of duplicate (#8609) (#8623)
21+
* Update heatmap fixtures to restore tests (#8615) (#8616)
22+
* Ensure that diff stats can scroll independently of the diff (#8581) (#8621)
23+
* Webhook: set Content-Type for application/x-www-form-urlencoded (#8600)
24+
* Fix #8582 by handling empty repos (#8587) (#8594)
25+
* Fix bug on pull requests when transfer head repository (#8564) (#8569)
26+
* Add missed close in ServeBlobLFS (#8527) (#8542)
27+
* Ensure that GitRepo is set on Empty repositories (#8539) (#8541)
28+
* Fix migrate mirror 500 bug (#8526) (#8530)
29+
* Fix password complexity regex for special characters (#8524)
30+
* Prevent .code-view from overriding font on icon fonts (#8614) (#8627)
31+
* Allow more than 255 characters for tokens in external_login_user table (#8554)
32+
733
## [1.10.0-RC1](https://github.com/go-gitea/gitea/releases/tag/v1.10.0-rc1) - 2019-10-14
834
* BREAKING
935
* Remove legacy handling of drone token (#8191)
@@ -263,6 +289,30 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
263289
* wiki - editor - add buttons 'inline code', 'empty checkbox', 'checked checkbox' (#7243)
264290
* Fix Statuses API only shows first 10 statuses: Add paging and extend API GetCommitStatuses (#7141)
265291

292+
## [1.9.5](https://github.com/go-gitea/gitea/releases/tag/v1.9.5) - 2019-10-30
293+
* BREAKING
294+
* Hide some user information via API if user doesn't have enough permission (#8655) (#8658)
295+
* BUGFIXES
296+
* Fix milestone close timestamp (#8728) (#8731)
297+
* Fix deadline on update issue or PR via API (#8699)
298+
* Fix 'New Issue Missing Milestone Comment' (#8678) (#8682)
299+
* Fix 500 when getting user as unauthenticated user (#8653) (#8662)
300+
* Use AppSubUrl for more redirections (#8647) (#8652)
301+
* Add SubURL to redirect path (#8632) (#8634) (#8640)
302+
* Fix #8582 by handling empty repos (#8587) (#8593)
303+
* Fix bug on pull requests when transfer head repository (#8571)
304+
* Add missed close in ServeBlobLFS (#8527) (#8543)
305+
* Return false if provided branch name is empty for IsBranchExist (#8485) (#8492)
306+
* Create .ssh dir as necessary (#8369) (#8486) (#8489)
307+
* Restore functionality for early gits (#7775) (#8476)
308+
* Add check for empty set when dropping indexes during migration (#8475)
309+
* Ensure Request Body Readers are closed in LFS server (#8454) (#8459)
310+
* Ensure that LFS files are relative to the LFS content path (#8455) (#8458)
311+
* SECURITY
312+
* Ignore mentions for users with no access (#8395) (#8484)
313+
* TESTING
314+
* Update heatmap fixtures to restore tests (#8615) (#8617)
315+
266316
## [1.9.4](https://github.com/go-gitea/gitea/releases/tag/v1.9.4) - 2019-10-08
267317
* BUGFIXES
268318
* Highlight issue references (#8101) (#8404)

cmd/admin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var (
6666
},
6767
cli.BoolFlag{
6868
Name: "must-change-password",
69-
Usage: "Force the user to change his/her password after initial login",
69+
Usage: "Set this option to false to prevent forcing the user to change their password after initial login, (Default: true)",
7070
},
7171
cli.IntFlag{
7272
Name: "random-password-length",

custom/conf/app.ini.sample

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ MAX_FILES = 5
6969
[repository.pull-request]
7070
; List of prefixes used in Pull Request title to mark them as Work In Progress
7171
WORK_IN_PROGRESS_PREFIXES=WIP:,[WIP]
72+
; List of keywords used in Pull Request comments to automatically close a related issue
73+
CLOSE_KEYWORDS=close,closes,closed,fix,fixes,fixed,resolve,resolves,resolved
74+
; List of keywords used in Pull Request comments to automatically reopen a related issue
75+
REOPEN_KEYWORDS=reopen,reopens,reopened
7276

7377
[repository.issue]
7478
; List of reasons why a Pull Request or Issue can be locked
@@ -475,6 +479,8 @@ DEFAULT_ORG_MEMBER_VISIBLE = false
475479
; Default value for EnableDependencies
476480
; Repositories will use dependencies by default depending on this setting
477481
DEFAULT_ENABLE_DEPENDENCIES = true
482+
; Dependencies can be added from any repository where the user is granted access or only from the current repository depending on this setting.
483+
ALLOW_CROSS_REPOSITORY_DEPENDENCIES = true
478484
; Enable heatmap on users profiles.
479485
ENABLE_USER_HEATMAP = true
480486
; Enable Timetracking

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
7171

7272
- `WORK_IN_PROGRESS_PREFIXES`: **WIP:,\[WIP\]**: List of prefixes used in Pull Request
7373
title to mark them as Work In Progress
74+
- `CLOSE_KEYWORDS`: **close**, **closes**, **closed**, **fix**, **fixes**, **fixed**, **resolve**, **resolves**, **resolved**: List of
75+
keywords used in Pull Request comments to automatically close a related issue
76+
- `REOPEN_KEYWORDS`: **reopen**, **reopens**, **reopened**: List of keywords used in Pull Request comments to automatically reopen
77+
a related issue
7478

7579
### Repository - Issue (`repository.issue`)
7680

@@ -293,6 +297,7 @@ relation to port exhaustion.
293297
- `RECAPTCHA_SITEKEY`: **""**: Go to https://www.google.com/recaptcha/admin to get a sitekey for recaptcha.
294298
- `RECAPTCHA_URL`: **https://www.google.com/recaptcha/**: Set the recaptcha url - allows the use of recaptcha net.
295299
- `DEFAULT_ENABLE_DEPENDENCIES`: **true**: Enable this to have dependencies enabled by default.
300+
- `ALLOW_CROSS_REPOSITORY_DEPENDENCIES` : **true** Enable this to allow dependencies on issues from any repository where the user is granted access.
296301
- `ENABLE_USER_HEATMAP`: **true**: Enable this to display the heatmap on users profiles.
297302
- `EMAIL_DOMAIN_WHITELIST`: **\<empty\>**: If non-empty, list of domain names that can only be used to register
298303
on this instance.

go.mod

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ require (
2222
github.com/blevesearch/go-porterstemmer v0.0.0-20141230013033-23a2c8e5cf1f // indirect
2323
github.com/blevesearch/segment v0.0.0-20160105220820-db70c57796cc // indirect
2424
github.com/boombuler/barcode v0.0.0-20161226211916-fe0f26ff6d26 // indirect
25-
github.com/chaseadamsio/goorgeous v0.0.0-20170901132237-098da33fde5f
2625
github.com/couchbase/vellum v0.0.0-20190111184608-e91b68ff3efe // indirect
2726
github.com/cznic/b v0.0.0-20181122101859-a26611c4d92d // indirect
2827
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
@@ -73,19 +72,21 @@ require (
7372
github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae // indirect
7473
github.com/msteinert/pam v0.0.0-20151204160544-02ccfbfaf0cc
7574
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5
75+
github.com/niklasfasching/go-org v0.1.7
7676
github.com/oliamb/cutter v0.2.2
7777
github.com/philhofer/fwd v1.0.0 // indirect
7878
github.com/pkg/errors v0.8.1
7979
github.com/pquerna/otp v0.0.0-20160912161815-54653902c20e
8080
github.com/prometheus/client_golang v1.1.0
8181
github.com/prometheus/procfs v0.0.4 // indirect
8282
github.com/remyoudompheng/bigfft v0.0.0-20190321074620-2f0d2b0e0001 // indirect
83-
github.com/russross/blackfriday v0.0.0-20180428102519-11635eb403ff
83+
github.com/russross/blackfriday v2.0.0+incompatible // indirect
84+
github.com/russross/blackfriday/v2 v2.0.1
8485
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
8586
github.com/satori/go.uuid v1.2.0
8687
github.com/sergi/go-diff v1.0.0
8788
github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b // indirect
88-
github.com/shurcooL/sanitized_anchor_name v0.0.0-20160918041101-1dba4b3954bc // indirect
89+
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
8990
github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd
9091
github.com/steveyen/gtreap v0.0.0-20150807155958-0abe01ef9be2 // indirect
9192
github.com/stretchr/testify v1.4.0
@@ -100,7 +101,7 @@ require (
100101
github.com/willf/bitset v0.0.0-20180426185212-8ce1146b8621 // indirect
101102
github.com/yohcop/openid-go v0.0.0-20160914080427-2c050d2dae53
102103
golang.org/x/crypto v0.0.0-20190927123631-a832865fa7ad
103-
golang.org/x/net v0.0.0-20190909003024-a7b16738d86b
104+
golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271
104105
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
105106
golang.org/x/sys v0.0.0-20190910064555-bbd175535a8b
106107
golang.org/x/text v0.3.2

go.sum

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ github.com/boombuler/barcode v0.0.0-20161226211916-fe0f26ff6d26/go.mod h1:paBWMc
8686
github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668 h1:U/lr3Dgy4WK+hNk4tyD+nuGjpVLPEHuJSFXMw11/HPA=
8787
github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA=
8888
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
89-
github.com/chaseadamsio/goorgeous v0.0.0-20170901132237-098da33fde5f h1:REH9VH5ubNR0skLaOxK7TRJeRbE2dDfvaouQo8FsRcA=
90-
github.com/chaseadamsio/goorgeous v0.0.0-20170901132237-098da33fde5f/go.mod h1:6QaC0vFoKWYDth94dHFNgRT2YkT5FHdQp/Yx15aAAi0=
9189
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
9290
github.com/corbym/gocrest v1.0.3 h1:gwEdq6RkTmq+09CTuM29DfKOCtZ7G7bcyxs3IZ6EVdU=
9391
github.com/corbym/gocrest v1.0.3/go.mod h1:maVFL5lbdS2PgfOQgGRWDYTeunSWQeiEgoNdTABShCs=
@@ -425,6 +423,10 @@ github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRW
425423
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
426424
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5 h1:BvoENQQU+fZ9uukda/RzCAL/191HHwJA5b13R6diVlY=
427425
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
426+
github.com/niklasfasching/go-org v0.1.6 h1:F521WcqRNl8OJumlgAnekZgERaTA2HpfOYYfVEKOeI8=
427+
github.com/niklasfasching/go-org v0.1.6/go.mod h1:AsLD6X7djzRIz4/RFZu8vwRL0VGjUvGZCCH1Nz0VdrU=
428+
github.com/niklasfasching/go-org v0.1.7 h1:t3V+3XnS/7BhKv/7SlMUa8FvAiq577/a1T3D7mLIRXE=
429+
github.com/niklasfasching/go-org v0.1.7/go.mod h1:AsLD6X7djzRIz4/RFZu8vwRL0VGjUvGZCCH1Nz0VdrU=
428430
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
429431
github.com/oliamb/cutter v0.2.2 h1:Lfwkya0HHNU1YLnGv2hTkzHfasrSMkgv4Dn+5rmlk3k=
430432
github.com/oliamb/cutter v0.2.2/go.mod h1:4BenG2/4GuRBDbVm/OPahDVqbrOemzpPiG5mi1iryBU=
@@ -487,8 +489,10 @@ github.com/remyoudompheng/bigfft v0.0.0-20190321074620-2f0d2b0e0001/go.mod h1:qq
487489
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
488490
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
489491
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
490-
github.com/russross/blackfriday v0.0.0-20180428102519-11635eb403ff h1:g9ZlAHmkc/h5So+OjNCkZWh+FjuKEOOOoyRkqlGA8+c=
491-
github.com/russross/blackfriday v0.0.0-20180428102519-11635eb403ff/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
492+
github.com/russross/blackfriday v2.0.0+incompatible h1:cBXrhZNUf9C+La9/YpS+UHpUT8YD6Td9ZMSU9APFcsk=
493+
github.com/russross/blackfriday v2.0.0+incompatible/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
494+
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
495+
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
492496
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca h1:NugYot0LIVPxTvN8n+Kvkn6TrbMyxQiuvKdEwFdR9vI=
493497
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca/go.mod h1:uugorj2VCxiV1x+LzaIdVa9b4S4qGAcH6cbhh4qVxOU=
494498
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
@@ -499,6 +503,8 @@ github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b h1:4kg1wyftSKxLtnP
499503
github.com/shurcooL/httpfs v0.0.0-20190527155220-6a4d4a70508b/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg=
500504
github.com/shurcooL/sanitized_anchor_name v0.0.0-20160918041101-1dba4b3954bc h1:3wIrJvFb3Pf6B/2mDBnN1G5IfUVev4X5apadQlWOczE=
501505
github.com/shurcooL/sanitized_anchor_name v0.0.0-20160918041101-1dba4b3954bc/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
506+
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
507+
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
502508
github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd h1:ug7PpSOB5RBPK1Kg6qskGBoP3Vnj/aNYFTznWvlkGo0=
503509
github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=
504510
github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw=
@@ -650,6 +656,8 @@ golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 h1:k7pJ2yAPLPgbskkFdhRCsA77k
650656
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
651657
golang.org/x/net v0.0.0-20190909003024-a7b16738d86b h1:XfVGCX+0T4WOStkaOsJRllbsiImhB2jgVBGc9L0lPGc=
652658
golang.org/x/net v0.0.0-20190909003024-a7b16738d86b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
659+
golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271 h1:N66aaryRB3Ax92gH0v3hp1QYZ3zWWCCUR/j8Ifh45Ss=
660+
golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
653661
golang.org/x/oauth2 v0.0.0-20180620175406-ef147856a6dd/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
654662
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
655663
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421 h1:Wo7BWFiOk0QRFMLYMqJGFMd9CgUAcGx7V+qEg/h5IBI=

0 commit comments

Comments
 (0)