Skip to content

Commit 3cb9819

Browse files
committed
Merge branch 'master' into unprotected-files
# Conflicts: # models/migrations/migrations.go # models/migrations/v191.go
2 parents 00390f1 + 06b9d55 commit 3cb9819

File tree

402 files changed

+27373
-22022
lines changed

Some content is hidden

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

402 files changed

+27373
-22022
lines changed

.drone.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ steps:
6565

6666
- name: checks-backend
6767
pull: always
68-
image: golang:1.16
68+
image: golang:1.17
6969
commands:
7070
- make checks-backend
7171
depends_on: [lint-backend]
@@ -93,7 +93,7 @@ steps:
9393
depends_on: [checks-backend]
9494

9595
- name: build-backend-arm64
96-
image: golang:1.16
96+
image: golang:1.17
9797
environment:
9898
GO111MODULE: on
9999
GOPROXY: off
@@ -106,7 +106,7 @@ steps:
106106
depends_on: [checks-backend]
107107

108108
- name: build-backend-windows
109-
image: golang:1.16
109+
image: golang:1.17
110110
environment:
111111
GO111MODULE: on
112112
GOPROXY: off
@@ -118,7 +118,7 @@ steps:
118118
depends_on: [checks-backend]
119119

120120
- name: build-backend-386
121-
image: golang:1.16
121+
image: golang:1.17
122122
environment:
123123
GO111MODULE: on
124124
GOPROXY: off
@@ -193,7 +193,7 @@ steps:
193193

194194
- name: build
195195
pull: always
196-
image: golang:1.16
196+
image: golang:1.17
197197
commands:
198198
- make backend
199199
environment:
@@ -208,34 +208,25 @@ steps:
208208
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
209209

210210
- name: unit-test
211-
image: golang:1.16
211+
image: golang:1.17
212212
commands:
213213
- make unit-test-coverage test-check
214214
environment:
215215
GOPROXY: off
216216
TAGS: bindata sqlite sqlite_unlock_notify
217-
GITHUB_READ_TOKEN:
218-
from_secret: github_read_token
219-
220-
- name: unit-test-race
221-
image: golang:1.16
222-
commands:
223-
- make test-backend
224-
environment:
225-
GOPROXY: off
226-
TAGS: sqlite sqlite_unlock_notify
227217
RACE_ENABLED: true
228218
GITHUB_READ_TOKEN:
229219
from_secret: github_read_token
230220

231221
- name: unit-test-gogit
232222
pull: always
233-
image: golang:1.16
223+
image: golang:1.17
234224
commands:
235225
- make unit-test-coverage test-check
236226
environment:
237227
GOPROXY: off
238228
TAGS: bindata gogit sqlite sqlite_unlock_notify
229+
RACE_ENABLED: true
239230
GITHUB_READ_TOKEN:
240231
from_secret: github_read_token
241232

@@ -246,6 +237,7 @@ steps:
246237
environment:
247238
GOPROXY: off
248239
TAGS: bindata
240+
RACE_ENABLED: true
249241
TEST_LDAP: 1
250242
USE_REPO_TEST_DIR: 1
251243
TEST_INDEXER_CODE_ES_URL: "http://elastic:changeme@elasticsearch:9200"
@@ -259,6 +251,7 @@ steps:
259251
environment:
260252
GOPROXY: off
261253
TAGS: bindata
254+
RACE_ENABLED: true
262255
TEST_LDAP: 1
263256
USE_REPO_TEST_DIR: 1
264257
depends_on:
@@ -271,13 +264,14 @@ steps:
271264
environment:
272265
GOPROXY: off
273266
TAGS: bindata
267+
RACE_ENABLED: true
274268
TEST_LDAP: 1
275269
USE_REPO_TEST_DIR: 1
276270
depends_on:
277271
- build
278272

279273
- name: generate-coverage
280-
image: golang:1.16
274+
image: golang:1.17
281275
commands:
282276
- make coverage
283277
environment:
@@ -351,7 +345,7 @@ steps:
351345

352346
- name: build
353347
pull: always
354-
image: golang:1.16
348+
image: golang:1.17
355349
commands:
356350
- make backend
357351
environment:
@@ -366,6 +360,7 @@ steps:
366360
environment:
367361
GOPROXY: off
368362
TAGS: bindata gogit sqlite sqlite_unlock_notify
363+
RACE_ENABLED: true
369364
TEST_TAGS: gogit sqlite sqlite_unlock_notify
370365
USE_REPO_TEST_DIR: 1
371366
depends_on:
@@ -378,6 +373,7 @@ steps:
378373
environment:
379374
GOPROXY: off
380375
TAGS: bindata gogit
376+
RACE_ENABLED: true
381377
TEST_TAGS: gogit
382378
TEST_LDAP: 1
383379
USE_REPO_TEST_DIR: 1
@@ -463,7 +459,7 @@ trigger:
463459

464460
steps:
465461
- name: download
466-
image: golang:1.16
462+
image: golang:1.17
467463
commands:
468464
- timeout -s ABRT 40m make generate-license generate-gitignore
469465

.eslintrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ rules:
125125
import/no-deprecated: [0]
126126
import/no-dynamic-require: [0]
127127
import/no-extraneous-dependencies: [2]
128+
import/no-import-module-exports: [0]
128129
import/no-internal-modules: [0]
129130
import/no-mutable-exports: [2]
130131
import/no-named-as-default-member: [0]
@@ -133,6 +134,7 @@ rules:
133134
import/no-named-export: [0]
134135
import/no-namespace: [0]
135136
import/no-nodejs-modules: [0]
137+
import/no-relative-packages: [0]
136138
import/no-relative-parent-imports: [0]
137139
import/no-restricted-paths: [0]
138140
import/no-self-import: [2]
@@ -365,6 +367,7 @@ rules:
365367
unicorn/no-abusive-eslint-disable: [0]
366368
unicorn/no-array-for-each: [0]
367369
unicorn/no-array-instanceof: [0]
370+
unicorn/no-array-method-this-argument: [2]
368371
unicorn/no-array-push-push: [2]
369372
unicorn/no-console-spaces: [0]
370373
unicorn/no-document-cookie: [2]
@@ -385,6 +388,8 @@ rules:
385388
unicorn/no-unreadable-array-destructuring: [0]
386389
unicorn/no-unsafe-regex: [0]
387390
unicorn/no-unused-properties: [2]
391+
unicorn/no-useless-length-check: [2]
392+
unicorn/no-useless-spread: [2]
388393
unicorn/no-useless-undefined: [0]
389394
unicorn/no-zero-fractions: [2]
390395
unicorn/number-literal-case: [0]
@@ -395,6 +400,7 @@ rules:
395400
unicorn/prefer-array-flat: [2]
396401
unicorn/prefer-array-index-of: [2]
397402
unicorn/prefer-array-some: [2]
403+
unicorn/prefer-at: [0]
398404
unicorn/prefer-dataset: [2]
399405
unicorn/prefer-date-now: [2]
400406
unicorn/prefer-default-parameters: [0]
@@ -408,7 +414,10 @@ rules:
408414
unicorn/prefer-node-protocol: [0]
409415
unicorn/prefer-node-remove: [0]
410416
unicorn/prefer-number-properties: [0]
417+
unicorn/prefer-object-from-entries: [2]
418+
unicorn/prefer-object-has-own: [0]
411419
unicorn/prefer-optional-catch-binding: [2]
420+
unicorn/prefer-prototype-methods: [0]
412421
unicorn/prefer-query-selector: [0]
413422
unicorn/prefer-reflect-apply: [0]
414423
unicorn/prefer-regexp-test: [2]
@@ -420,9 +429,13 @@ rules:
420429
unicorn/prefer-switch: [0]
421430
unicorn/prefer-ternary: [0]
422431
unicorn/prefer-text-content: [2]
432+
unicorn/prefer-top-level-await: [0]
423433
unicorn/prefer-trim-start-end: [2]
424434
unicorn/prefer-type-error: [0]
425435
unicorn/prevent-abbreviations: [0]
436+
unicorn/require-array-join-separator: [2]
437+
unicorn/require-number-to-fixed-digits-argument: [2]
438+
unicorn/require-post-message-target-origin: [0]
426439
unicorn/string-content: [0]
427440
unicorn/throw-new-error: [2]
428441
use-isnan: [2]

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/templates/**/*.tmpl linguist-language=Handlebars
55
/.eslintrc linguist-language=YAML
66
/.stylelintrc linguist-language=YAML
7+
/web_src/fomantic/build/** linguist-generated

CHANGELOG.md

Lines changed: 45 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,7 @@ 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.15.0-rc3](https://github.com/go-gitea/gitea/releases/tag/v1.15.0-rc3) - 2021-08-06
8-
9-
* BREAKING
10-
* Upgrade to the latest version of golang-jwt and increase minimum go to 1.15 (#16590) (#16606)
11-
* SECURITY
12-
* Upgrade to the latest version of golang-jwt and increase minimum go to 1.15 (#16590) (#16606)
13-
* Correctly create of git-daemon-export-ok files (#16508) (#16514)
14-
* Don't show private user's repo in explore view (#16550) (#16554)
15-
* Update node tar dependency to 6.1.6 (#16622) (#16623)
16-
* API
17-
* Swagger AccessToken fixes (#16574) (#16597)
18-
* Set AllowedHeaders on API CORS handler (#16524) (#16618)
19-
* BUGFIXES
20-
* Restore Accessibility for Dropdown (#16576) (#16617)
21-
* Pass down SignedUserName down to AccessLogger context (#16605) (#16616)
22-
* Fix table alignment in markdown (#16596) (#16602)
23-
* Fix 500 on first wiki page (#16586) (#16598)
24-
* Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16564) (#16570)
25-
* Upgrade levelqueue to v0.4.0 (#16560) (#16561)
26-
* Handle too long PR titles correctly (#16517) (#16549)
27-
* Fix data race in bleve indexer (#16474) (#16509)
28-
* Restore CORS on git smart http protocol (#16496) (#16506)
29-
* Fix race in log (#16490) (#16505)
30-
* Fix prepareUncycloFileName to respect existing unescaped files (#16487) (#16498)
31-
* Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) (#16480)
32-
* Update notification table with only latest data (#16445) (#16469)
33-
* Revert to use alpine 3.13 (#16451) (#16452)
34-
* Fix crash following ldap authentication update (#16447) (#16448)
35-
* Fix direct creation of external users on admin page (partial #16612) (#16613)
36-
* Prevent 500 on draft releases without tag (#16634) (#16636)
37-
38-
## [1.15.0-rc2](https://github.com/go-gitea/gitea/releases/tag/v1.15.0-rc2) - 2021-07-22
39-
40-
* BUGFIXES
41-
* Restore creation of git-daemon-export-ok files (#16508) (#16514)
42-
* Fix data race in bleve indexer (#16474) (#16509)
43-
* Restore CORS on git smart http protocol (#16496) (#16506)
44-
* Fix race in log (#16490) (#16505)
45-
* Fix prepareUncycloFileName to respect existing unescaped files (#16487) (#16498)
46-
* Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) (#16480)
47-
* Update notification table with only latest data (#16445) (#16469)
48-
* Revert to use alpine 3.13 to fix multiple seccomp related issues with Docker <20 (#16451) (#16452)
49-
* Fix crash following ldap authentication update (#16447) (#16448)
50-
51-
## [1.15.0-rc1](https://github.com/go-gitea/gitea/releases/tag/v1.15.0-rc1) - 2021-07-15
7+
## [1.15.0](https://github.com/go-gitea/gitea/releases/tag/v1.15.0) - 2021-08-21
528

539
* BREAKING
5410
* Make app.ini permissions more restrictive (#16266)
@@ -63,9 +19,15 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
6319
* Move (custom) assets into subpath `/assets` (#15219)
6420
* Use level config in log section when sub log section not set level (#15176)
6521
* Links in markdown should be absolute to the repository not the server (#15088)
22+
* Upgrade to the latest version of golang-jwt (#16590) (#16606)
23+
* Set minimum supported version of go to 1.16 (#16710)
6624
* SECURITY
6725
* Encrypt LDAP bind password in db with SECRET_KEY (#15547)
6826
* Remove random password in Dockerfiles (#15362)
27+
* Upgrade to the latest version of golang-jwt and increase minimum go to 1.15 (#16590) (#16606)
28+
* Correctly create of git-daemon-export-ok files (#16508) (#16514)
29+
* Don't show private user's repo in explore view (#16550) (#16554)
30+
* Update node tar dependency to 6.1.6 (#16622) (#16623)
6931
* FEATURES
7032
* Update Go-Git to take advantage of LargeObjectThreshold (#16316)
7133
* Support custom mime type mapping for text files (#16304)
@@ -86,7 +48,7 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
8648
* Add LFS Migration and Mirror (#14726)
8749
* Improve notifications for WIP draft PR's (#14663)
8850
* Disable Stars config option (#14653)
89-
* Add option to provide signature for a token to verify key ownership (#14054)
51+
* GPG Key Ownership verification with Signed Token (#14054)
9052
* OAuth2 auto-register (#5123)
9153
* API
9254
* Return updated repository when changing repository using API (#16420)
@@ -106,6 +68,8 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
10668
* Add Active and ProhibitLogin to API (#15689)
10769
* Add Location, Website and Description to API (#15675)
10870
* Expose resolver via API (#15167)
71+
* Swagger AccessToken fixes (#16574) (#16597)
72+
* Set AllowedHeaders on API CORS handler (#16524) (#16618)
10973
* ENHANCEMENTS
11074
* Support HTTP/2 in Let's Encrypt (#16371)
11175
* Introduce NotifySubjectType (#16320)
@@ -231,6 +195,41 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
231195
* Add NeedPostProcess for Parser interface to improve performance of csv parser and some external parser (#15153)
232196
* Add code block highlight to orgmode back (#14222)
233197
* Remove User.GetOrganizations() (#14032)
198+
* Restore Accessibility for Dropdown (#16576) (#16617)
199+
* Pass down SignedUserName down to AccessLogger context (#16605) (#16616)
200+
* Fix table alignment in markdown (#16596) (#16602)
201+
* Fix 500 on first wiki page (#16586) (#16598)
202+
* Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16564) (#16570)
203+
* Upgrade levelqueue to v0.4.0 (#16560) (#16561)
204+
* Handle too long PR titles correctly (#16517) (#16549)
205+
* Fix data race in bleve indexer (#16474) (#16509)
206+
* Restore CORS on git smart http protocol (#16496) (#16506)
207+
* Fix race in log (#16490) (#16505)
208+
* Fix prepareUncycloFileName to respect existing unescaped files (#16487) (#16498)
209+
* Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) (#16480)
210+
* Update notification table with only latest data (#16445) (#16469)
211+
* Fix crash following ldap authentication update (#16447) (#16448)
212+
* Fix direct creation of external users on admin page (partial #16612) (#16613)
213+
* Prevent 500 on draft releases without tag (#16634) (#16636)
214+
* Restore creation of git-daemon-export-ok files (#16508) (#16514)
215+
* Fix data race in bleve indexer (#16474) (#16509)
216+
* Restore CORS on git smart http protocol (#16496) (#16506)
217+
* Fix race in log (#16490) (#16505)
218+
* Fix prepareUncycloFileName to respect existing unescaped files (#16487) (#16498)
219+
* Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) (#16480)
220+
* Update notification table with only latest data (#16445) (#16469)
221+
* Fix crash following ldap authentication update (#16447) (#16448)
222+
* Restore compatibility with SQLServer 2008 R2 in migrations (#16638)
223+
* Fix direct creation of external users on admin page (#16613)
224+
* Fix go-git implementation of GetNote when passed a non-existent commit (#16658) (#16659)
225+
* Fix NPE in fuzzer (#16680) (#16682)
226+
* Set issue_index when finishing migration (#16685) (#16687)
227+
* Skip patch download when no patch file exists (#16356) (#16681)
228+
* Ensure empty lines are copiable and final new line too (#16678) (#16692)
229+
* Fix wrong user in OpenID response (#16736) (#16741)
230+
* Do not use thin scrollbars on Firefox (#16738) (#16745)
231+
* Recreate Tables should Recreate indexes on MySQL (#16718) (#16739)
232+
* Keep attachments on tasklist update (#16750) (#16757)
234233
* TESTING
235234
* Bump `postgres` and `mysql` versions (#15710)
236235
* Add tests for clone from wiki (#15513)
@@ -241,7 +240,6 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
241240
* Fix mirror_lfs source string in en-US locale (#15369)
242241
* BUILD
243242
* Upgrade xorm to v1.1.1 (#16339)
244-
* Alpine 3.14 released (#16170)
245243
* Disable legal comments in esbuild (#15929)
246244
* Switch to Node 16 to build fronted (#15804)
247245
* Use esbuild to minify CSS (#15756)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.16-alpine3.13 AS build-env
4+
FROM golang:1.17-alpine3.13 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}

Dockerfile.rootless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.16-alpine3.13 AS build-env
4+
FROM golang:1.17-alpine3.13 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}

0 commit comments

Comments
 (0)