Skip to content

Commit 7f6d010

Browse files
committed
Merge branch 'main' into feature/ldap-group-sync
2 parents 675d64d + 4a20ead commit 7f6d010

File tree

7,014 files changed

+18087
-2560690
lines changed

Some content is hidden

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

7,014 files changed

+18087
-2560690
lines changed

.drone.yml

Lines changed: 24 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ steps:
8888
image: golang:1.16 # this step is kept as the lowest version of golang that we support
8989
environment:
9090
GO111MODULE: on
91-
GOPROXY: off
91+
GOPROXY: https://goproxy.cn
9292
commands:
93-
- go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
93+
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
9494
depends_on: [checks-backend]
9595

9696
- name: build-backend-arm64
9797
image: golang:1.17
9898
environment:
9999
GO111MODULE: on
100-
GOPROXY: off
100+
GOPROXY: https://goproxy.cn
101101
GOOS: linux
102102
GOARCH: arm64
103103
TAGS: bindata gogit
@@ -110,23 +110,23 @@ steps:
110110
image: golang:1.17
111111
environment:
112112
GO111MODULE: on
113-
GOPROXY: off
113+
GOPROXY: https://goproxy.cn
114114
GOOS: windows
115115
GOARCH: amd64
116116
TAGS: bindata gogit
117117
commands:
118-
- go build -mod=vendor -o gitea_windows
118+
- go build -o gitea_windows
119119
depends_on: [checks-backend]
120120

121121
- name: build-backend-386
122122
image: golang:1.17
123123
environment:
124124
GO111MODULE: on
125-
GOPROXY: off
125+
GOPROXY: https://goproxy.cn
126126
GOOS: linux
127127
GOARCH: 386
128128
commands:
129-
- go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
129+
- go build -o gitea_linux_386 # test if compatible with 32 bit
130130
depends_on: [checks-backend]
131131

132132
---
@@ -224,7 +224,7 @@ steps:
224224
commands:
225225
- make unit-test-coverage test-check
226226
environment:
227-
GOPROXY: off
227+
GOPROXY: https://goproxy.cn
228228
TAGS: bindata sqlite sqlite_unlock_notify
229229
RACE_ENABLED: true
230230
GITHUB_READ_TOKEN:
@@ -237,7 +237,7 @@ steps:
237237
commands:
238238
- make unit-test-coverage test-check
239239
environment:
240-
GOPROXY: off
240+
GOPROXY: https://goproxy.cn
241241
TAGS: bindata gogit sqlite sqlite_unlock_notify
242242
RACE_ENABLED: true
243243
GITHUB_READ_TOKEN:
@@ -249,7 +249,7 @@ steps:
249249
commands:
250250
- make test-mysql-migration integration-test-coverage
251251
environment:
252-
GOPROXY: off
252+
GOPROXY: https://goproxy.cn
253253
TAGS: bindata
254254
RACE_ENABLED: true
255255
TEST_LDAP: 1
@@ -264,7 +264,7 @@ steps:
264264
commands:
265265
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8
266266
environment:
267-
GOPROXY: off
267+
GOPROXY: https://goproxy.cn
268268
TAGS: bindata
269269
RACE_ENABLED: true
270270
TEST_LDAP: 1
@@ -278,7 +278,7 @@ steps:
278278
commands:
279279
- make test-mssql-migration test-mssql
280280
environment:
281-
GOPROXY: off
281+
GOPROXY: https://goproxy.cn
282282
TAGS: bindata
283283
RACE_ENABLED: true
284284
TEST_LDAP: 1
@@ -291,7 +291,7 @@ steps:
291291
commands:
292292
- make coverage
293293
environment:
294-
GOPROXY: off
294+
GOPROXY: https://goproxy.cn
295295
TAGS: bindata
296296
depends_on:
297297
- unit-test
@@ -384,7 +384,7 @@ steps:
384384
commands:
385385
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
386386
environment:
387-
GOPROXY: off
387+
GOPROXY: https://goproxy.cn
388388
TAGS: bindata gogit sqlite sqlite_unlock_notify
389389
RACE_ENABLED: true
390390
TEST_TAGS: gogit sqlite sqlite_unlock_notify
@@ -398,7 +398,7 @@ steps:
398398
commands:
399399
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql
400400
environment:
401-
GOPROXY: off
401+
GOPROXY: https://goproxy.cn
402402
TAGS: bindata gogit
403403
RACE_ENABLED: true
404404
TEST_TAGS: gogit
@@ -760,7 +760,7 @@ steps:
760760
auto_tag_suffix: linux-amd64
761761
repo: gitea/gitea
762762
build_args:
763-
- GOPROXY=off
763+
- GOPROXY=https://goproxy.cn
764764
password:
765765
from_secret: docker_password
766766
username:
@@ -778,14 +778,11 @@ steps:
778778
auto_tag_suffix: linux-amd64-rootless
779779
repo: gitea/gitea
780780
build_args:
781-
- GOPROXY=off
781+
- GOPROXY=https://goproxy.cn
782782
password:
783783
from_secret: docker_password
784784
username:
785785
from_secret: docker_username
786-
environment:
787-
PLUGIN_MIRROR:
788-
from_secret: plugin_mirror
789786
when:
790787
event:
791788
exclude:
@@ -825,7 +822,7 @@ steps:
825822
tags: dev-linux-amd64
826823
repo: gitea/gitea
827824
build_args:
828-
- GOPROXY=off
825+
- GOPROXY=https://goproxy.cn
829826
password:
830827
from_secret: docker_password
831828
username:
@@ -843,14 +840,11 @@ steps:
843840
tags: dev-linux-amd64-rootless
844841
repo: gitea/gitea
845842
build_args:
846-
- GOPROXY=off
843+
- GOPROXY=https://goproxy.cn
847844
password:
848845
from_secret: docker_password
849846
username:
850847
from_secret: docker_username
851-
environment:
852-
PLUGIN_MIRROR:
853-
from_secret: plugin_mirror
854848
when:
855849
event:
856850
exclude:
@@ -881,7 +875,7 @@ steps:
881875
repo: gitea/gitea
882876
tags: linux-arm64
883877
build_args:
884-
- GOPROXY=off
878+
- GOPROXY=https://goproxy.cn
885879
environment:
886880
PLUGIN_MIRROR:
887881
from_secret: plugin_mirror
@@ -923,14 +917,11 @@ steps:
923917
auto_tag_suffix: linux-arm64
924918
repo: gitea/gitea
925919
build_args:
926-
- GOPROXY=off
920+
- GOPROXY=https://goproxy.cn
927921
password:
928922
from_secret: docker_password
929923
username:
930924
from_secret: docker_username
931-
environment:
932-
PLUGIN_MIRROR:
933-
from_secret: plugin_mirror
934925
when:
935926
event:
936927
exclude:
@@ -944,14 +935,11 @@ steps:
944935
auto_tag_suffix: linux-arm64-rootless
945936
repo: gitea/gitea
946937
build_args:
947-
- GOPROXY=off
938+
- GOPROXY=https://goproxy.cn
948939
password:
949940
from_secret: docker_password
950941
username:
951942
from_secret: docker_username
952-
environment:
953-
PLUGIN_MIRROR:
954-
from_secret: plugin_mirror
955943
when:
956944
event:
957945
exclude:
@@ -991,14 +979,11 @@ steps:
991979
tags: dev-linux-arm64
992980
repo: gitea/gitea
993981
build_args:
994-
- GOPROXY=off
982+
- GOPROXY=https://goproxy.cn
995983
password:
996984
from_secret: docker_password
997985
username:
998986
from_secret: docker_username
999-
environment:
1000-
PLUGIN_MIRROR:
1001-
from_secret: plugin_mirror
1002987
when:
1003988
event:
1004989
exclude:
@@ -1012,14 +997,11 @@ steps:
1012997
tags: dev-linux-arm64-rootless
1013998
repo: gitea/gitea
1014999
build_args:
1015-
- GOPROXY=off
1000+
- GOPROXY=https://goproxy.cn
10161001
password:
10171002
from_secret: docker_password
10181003
username:
10191004
from_secret: docker_username
1020-
environment:
1021-
PLUGIN_MIRROR:
1022-
from_secret: plugin_mirror
10231005
when:
10241006
event:
10251007
exclude:

.eslintrc

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ plugins:
1313
- eslint-plugin-import
1414
- eslint-plugin-vue
1515
- eslint-plugin-html
16-
- eslint-plugin-github
1716

1817
extends:
1918
- plugin:vue/recommended
@@ -27,7 +26,6 @@ globals:
2726
CodeMirror: false
2827
Dropzone: false
2928
SimpleMDE: false
30-
u2fApi: false
3129

3230
settings:
3331
html/html-extensions: [".tmpl"]
@@ -97,23 +95,6 @@ rules:
9795
function-paren-newline: [0]
9896
generator-star-spacing: [0]
9997
getter-return: [2]
100-
github/array-foreach: [2]
101-
github/async-currenttarget: [2]
102-
github/async-preventdefault: [2]
103-
github/authenticity-token: [0]
104-
github/get-attribute: [2]
105-
github/js-class-name: [0]
106-
github/no-blur: [0]
107-
github/no-d-none: [0]
108-
github/no-dataset: [2]
109-
github/no-implicit-buggy-globals: [0]
110-
github/no-inner-html: [0]
111-
github/no-innerText: [2]
112-
github/no-then: [0]
113-
github/no-useless-passive: [2]
114-
github/prefer-observers: [0]
115-
github/require-passive-events: [2]
116-
github/unescaped-html-literal: [0]
11798
grouped-accessor-pairs: [2]
11899
guard-for-in: [0]
119100
id-blacklist: [0]
@@ -302,6 +283,7 @@ rules:
302283
no-unsafe-negation: [2]
303284
no-unused-expressions: [2]
304285
no-unused-labels: [2]
286+
no-unused-private-class-members: [2]
305287
no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, caughtErrorsIgnorePattern: ^_, ignoreRestSiblings: false}]
306288
no-use-before-define: [2, nofunc]
307289
no-useless-backreference: [0]
@@ -334,6 +316,7 @@ rules:
334316
prefer-exponentiation-operator: [2]
335317
prefer-named-capture-group: [0]
336318
prefer-numeric-literals: [2]
319+
prefer-object-has-own: [0]
337320
prefer-object-spread: [0]
338321
prefer-promise-reject-errors: [2, {allowEmptyReject: false}]
339322
prefer-regex-literals: [2]
@@ -380,7 +363,7 @@ rules:
380363
unicorn/import-style: [0]
381364
unicorn/new-for-builtins: [2]
382365
unicorn/no-abusive-eslint-disable: [0]
383-
unicorn/no-array-for-each: [0]
366+
unicorn/no-array-for-each: [2]
384367
unicorn/no-array-instanceof: [0]
385368
unicorn/no-array-method-this-argument: [2]
386369
unicorn/no-array-push-push: [2]
@@ -402,12 +385,14 @@ rules:
402385
unicorn/no-process-exit: [0]
403386
unicorn/no-reduce: [2]
404387
unicorn/no-static-only-class: [2]
388+
unicorn/no-thenable: [2]
405389
unicorn/no-this-assignment: [2]
406390
unicorn/no-unreadable-array-destructuring: [0]
407391
unicorn/no-unsafe-regex: [0]
408392
unicorn/no-unused-properties: [2]
409393
unicorn/no-useless-fallback-in-spread: [2]
410394
unicorn/no-useless-length-check: [2]
395+
unicorn/no-useless-promise-resolve-reject: [2]
411396
unicorn/no-useless-spread: [2]
412397
unicorn/no-useless-undefined: [0]
413398
unicorn/no-zero-fractions: [2]
@@ -427,6 +412,7 @@ rules:
427412
unicorn/prefer-event-key: [2]
428413
unicorn/prefer-export-from: [2]
429414
unicorn/prefer-includes: [2]
415+
unicorn/prefer-json-parse-buffer: [0]
430416
unicorn/prefer-math-trunc: [2]
431417
unicorn/prefer-modern-dom-apis: [0]
432418
unicorn/prefer-module: [2]
@@ -454,6 +440,7 @@ rules:
454440
unicorn/prefer-trim-start-end: [2]
455441
unicorn/prefer-type-error: [0]
456442
unicorn/prevent-abbreviations: [0]
443+
unicorn/relative-url-style: [2]
457444
unicorn/require-array-join-separator: [2]
458445
unicorn/require-number-to-fixed-digits-argument: [2]
459446
unicorn/require-post-message-target-origin: [0]

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/.eslintrc linguist-language=YAML
66
/.stylelintrc linguist-language=YAML
77
/web_src/fomantic/build/** linguist-generated
8+
Dockerfile.* linguist-language=Dockerfile

0 commit comments

Comments
 (0)