Skip to content

Commit cf822b3

Browse files
committed
Merge branch 'master' into lunny/refactor_git
2 parents 20f5ccf + 62a4879 commit cf822b3

File tree

2,370 files changed

+119709
-91338
lines changed

Some content is hidden

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

2,370 files changed

+119709
-91338
lines changed

.drone.yml

+31-29
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: compliance
44

55
platform:
66
os: linux
7-
arch: arm64
7+
arch: amd64
88

99
trigger:
1010
event:
@@ -15,19 +15,19 @@ trigger:
1515
steps:
1616
- name: deps-frontend
1717
pull: always
18-
image: node:14
18+
image: node:16
1919
commands:
2020
- make node_modules
2121

2222
- name: lint-frontend
23-
image: node:14
23+
image: node:16
2424
commands:
2525
- make lint-frontend
2626
depends_on: [deps-frontend]
2727

2828
- name: lint-backend
2929
pull: always
30-
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
30+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
3131
commands:
3232
- make lint-backend
3333
environment:
@@ -37,7 +37,7 @@ steps:
3737

3838
- name: lint-backend-windows
3939
pull: always
40-
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
40+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
4141
commands:
4242
- make golangci-lint vet
4343
environment:
@@ -49,7 +49,7 @@ steps:
4949

5050
- name: lint-backend-gogit
5151
pull: always
52-
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
52+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
5353
commands:
5454
- make lint-backend
5555
environment:
@@ -58,7 +58,7 @@ steps:
5858
TAGS: bindata gogit sqlite sqlite_unlock_notify
5959

6060
- name: checks-frontend
61-
image: node:14
61+
image: node:16
6262
commands:
6363
- make checks-frontend
6464
depends_on: [deps-frontend]
@@ -71,13 +71,13 @@ steps:
7171
depends_on: [lint-backend]
7272

7373
- name: test-frontend
74-
image: node:14
74+
image: node:16
7575
commands:
7676
- make test-frontend
7777
depends_on: [lint-frontend]
7878

7979
- name: build-frontend
80-
image: node:14
80+
image: node:16
8181
commands:
8282
- make frontend
8383
depends_on: [test-frontend]
@@ -153,7 +153,7 @@ services:
153153
MYSQL_DATABASE: test
154154

155155
- name: mysql8
156-
image: mysql:8.0
156+
image: mysql:8
157157
environment:
158158
MYSQL_ALLOW_EMPTY_PASSWORD: yes
159159
MYSQL_DATABASE: testgitea
@@ -277,7 +277,7 @@ steps:
277277
- test-mysql
278278
when:
279279
branch:
280-
- master
280+
- main
281281
event:
282282
- push
283283
- pull_request
@@ -294,7 +294,7 @@ steps:
294294
- generate-coverage
295295
when:
296296
branch:
297-
- master
297+
- main
298298
event:
299299
- push
300300
- pull_request
@@ -319,7 +319,7 @@ trigger:
319319
services:
320320
- name: pgsql
321321
pull: default
322-
image: postgres:9.5
322+
image: postgres:10
323323
environment:
324324
POSTGRES_DB: test
325325
POSTGRES_PASSWORD: postgres
@@ -383,7 +383,7 @@ platform:
383383

384384
trigger:
385385
branch:
386-
- master
386+
- main
387387
event:
388388
- cron
389389
cron:
@@ -414,6 +414,7 @@ steps:
414414
settings:
415415
author_email: "[email protected]"
416416
author_name: GiteaBot
417+
branch: main
417418
commit: true
418419
commit_message: "[skip ci] Updated translations via Crowdin"
419420
remote: "[email protected]:go-gitea/gitea.git"
@@ -443,7 +444,7 @@ platform:
443444

444445
trigger:
445446
branch:
446-
- master
447+
- main
447448
event:
448449
- cron
449450
cron:
@@ -461,6 +462,7 @@ steps:
461462
settings:
462463
author_email: "[email protected]"
463464
author_name: GiteaBot
465+
branch: main
464466
commit: true
465467
commit_message: "[skip ci] Updated licenses and gitignores "
466468
remote: "[email protected]:go-gitea/gitea.git"
@@ -482,7 +484,7 @@ workspace:
482484

483485
trigger:
484486
branch:
485-
- master
487+
- main
486488
- "release/*"
487489
event:
488490
- push
@@ -501,7 +503,7 @@ steps:
501503
pull: always
502504
image: techknowlogick/xgo:go-1.16.x
503505
commands:
504-
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
506+
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
505507
- export PATH=$PATH:$GOPATH/bin
506508
- make release
507509
environment:
@@ -528,7 +530,7 @@ steps:
528530
image: plugins/s3:1
529531
settings:
530532
acl: public-read
531-
bucket: releases
533+
bucket: gitea-artifacts
532534
endpoint: https://storage.gitea.io
533535
path_style: true
534536
source: "dist/release/*"
@@ -545,24 +547,24 @@ steps:
545547
event:
546548
- push
547549

548-
- name: release-master
550+
- name: release-main
549551
image: plugins/s3:1
550552
settings:
551553
acl: public-read
552-
bucket: releases
554+
bucket: gitea-artifacts
553555
endpoint: https://storage.gitea.io
554556
path_style: true
555557
source: "dist/release/*"
556558
strip_prefix: dist/release/
557-
target: /gitea/master
559+
target: /gitea/main
558560
environment:
559561
AWS_ACCESS_KEY_ID:
560562
from_secret: aws_access_key_id
561563
AWS_SECRET_ACCESS_KEY:
562564
from_secret: aws_secret_access_key
563565
when:
564566
branch:
565-
- master
567+
- main
566568
event:
567569
- push
568570

@@ -597,7 +599,7 @@ steps:
597599
pull: always
598600
image: techknowlogick/xgo:go-1.16.x
599601
commands:
600-
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
602+
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
601603
- export PATH=$PATH:$GOPATH/bin
602604
- make release
603605
environment:
@@ -624,7 +626,7 @@ steps:
624626
image: plugins/s3:1
625627
settings:
626628
acl: public-read
627-
bucket: releases
629+
bucket: gitea-artifacts
628630
endpoint: https://storage.gitea.io
629631
path_style: true
630632
source: "dist/release/*"
@@ -683,7 +685,7 @@ steps:
683685
from_secret: netlify_token
684686
when:
685687
branch:
686-
- master
688+
- main
687689
event:
688690
- push
689691

@@ -701,7 +703,7 @@ depends_on:
701703

702704
trigger:
703705
ref:
704-
- refs/heads/master
706+
- refs/heads/main
705707
- "refs/tags/**"
706708
event:
707709
exclude:
@@ -798,7 +800,7 @@ depends_on:
798800

799801
trigger:
800802
ref:
801-
- refs/heads/master
803+
- refs/heads/main
802804
- "refs/tags/**"
803805
event:
804806
exclude:
@@ -886,7 +888,7 @@ steps:
886888

887889
trigger:
888890
ref:
889-
- refs/heads/master
891+
- refs/heads/main
890892
- "refs/tags/**"
891893
event:
892894
exclude:
@@ -909,7 +911,7 @@ clone:
909911

910912
trigger:
911913
branch:
912-
- master
914+
- main
913915
- "release/*"
914916
event:
915917
- push

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ insert_final_newline = false
1818
[templates/swagger/v1_json.tmpl]
1919
indent_style = space
2020

21+
[templates/user/auth/oidc_wellknown.tmpl]
22+
indent_style = space
23+
2124
[Makefile]
2225
indent_style = tab
2326

.eslintrc

+5
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ rules:
366366
unicorn/no-array-instanceof: [0]
367367
unicorn/no-array-push-push: [2]
368368
unicorn/no-console-spaces: [0]
369+
unicorn/no-document-cookie: [2]
369370
unicorn/no-fn-reference-in-iterator: [0]
370371
unicorn/no-for-loop: [0]
371372
unicorn/no-hex-escape: [0]
@@ -389,6 +390,7 @@ rules:
389390
unicorn/numeric-separators-style: [0]
390391
unicorn/prefer-add-event-listener: [2]
391392
unicorn/prefer-array-find: [2]
393+
unicorn/prefer-array-flat-map: [2]
392394
unicorn/prefer-array-flat: [2]
393395
unicorn/prefer-array-index-of: [2]
394396
unicorn/prefer-array-some: [2]
@@ -399,8 +401,10 @@ rules:
399401
unicorn/prefer-includes: [2]
400402
unicorn/prefer-math-trunc: [2]
401403
unicorn/prefer-modern-dom-apis: [0]
404+
unicorn/prefer-module: [2]
402405
unicorn/prefer-negative-index: [2]
403406
unicorn/prefer-node-append: [0]
407+
unicorn/prefer-node-protocol: [0]
404408
unicorn/prefer-node-remove: [0]
405409
unicorn/prefer-number-properties: [0]
406410
unicorn/prefer-optional-catch-binding: [2]
@@ -412,6 +416,7 @@ rules:
412416
unicorn/prefer-spread: [0]
413417
unicorn/prefer-starts-ends-with: [2]
414418
unicorn/prefer-string-slice: [0]
419+
unicorn/prefer-switch: [0]
415420
unicorn/prefer-ternary: [0]
416421
unicorn/prefer-text-content: [2]
417422
unicorn/prefer-trim-start-end: [2]

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Please check the following:
22

3-
1. Make sure you are targeting the `master` branch, pull requests on release branches are only allowed for bug fixes.
3+
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for bug fixes.
44
2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/master/CONTRIBUTING.md
55
3. Describe what your pull request does and which issue you're targeting (if any)
66

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ _testmain.go
3232

3333
*coverage.out
3434
coverage.all
35+
cpu.out
3536

3637
/modules/options/bindata.go
3738
/modules/options/bindata.go.hash
@@ -75,6 +76,8 @@ coverage.all
7576
/integrations/mssql.ini
7677
/node_modules
7778
/yarn.lock
79+
/yarn-error.log
80+
/npm-debug.log*
7881
/public/js
7982
/public/serviceworker.js
8083
/public/css

.golangci.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ issues:
7070
- path: modules/log/
7171
linters:
7272
- errcheck
73-
- path: routers/routes/web.go
74-
linters:
75-
- dupl
7673
- path: routers/api/v1/repo/issue_subscription.go
7774
linters:
7875
- dupl
@@ -110,3 +107,8 @@ issues:
110107
- text: "exitAfterDefer:"
111108
linters:
112109
- gocritic
110+
- path: modules/graceful/manager_windows.go
111+
linters:
112+
- staticcheck
113+
text: "svc.IsAnInteractiveSession is deprecated: Use IsWindowsService instead."
114+

0 commit comments

Comments
 (0)