Skip to content

Commit 125747a

Browse files
committed
Merge remote-tracking branch 'origin/main' into oidc-claims
2 parents d119bc8 + 0fa41b6 commit 125747a

File tree

1,125 files changed

+34331
-32337
lines changed

Some content is hidden

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

1,125 files changed

+34331
-32337
lines changed
File renamed without changes.

.drone.yml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
kind: pipeline
3+
type: docker
34
name: compliance
45

56
platform:
@@ -130,6 +131,7 @@ steps:
130131

131132
---
132133
kind: pipeline
134+
type: docker
133135
name: testing-amd64
134136

135137
platform:
@@ -191,26 +193,30 @@ steps:
191193
exclude:
192194
- pull_request
193195

194-
- name: build
195-
pull: always
196-
image: golang:1.17
197-
commands:
198-
- make backend
199-
environment:
200-
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
201-
GOSUMDB: sum.golang.org
202-
TAGS: bindata sqlite sqlite_unlock_notify
203-
204196
- name: tag-pre-condition
205197
pull: always
206198
image: drone/git
207199
commands:
208200
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
209201

210-
- name: fix-permissions
202+
- name: prepare-test-env
211203
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
212204
commands:
213-
- chown -R gitea:gitea .
205+
- ./build/test-env-prepare.sh
206+
207+
- name: build
208+
pull: always
209+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
210+
user: gitea
211+
commands:
212+
- ./build/test-env-check.sh
213+
- make backend
214+
environment:
215+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
216+
GOSUMDB: sum.golang.org
217+
TAGS: bindata sqlite sqlite_unlock_notify
218+
depends_on:
219+
- prepare-test-env
214220

215221
- name: unit-test
216222
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
@@ -353,21 +359,24 @@ steps:
353359
exclude:
354360
- pull_request
355361

356-
- name: fix-permissions
362+
- name: prepare-test-env
357363
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
358364
commands:
359-
- chown -R gitea:gitea .
365+
- ./build/test-env-prepare.sh
360366

361367
- name: build
362368
pull: always
363369
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
364370
user: gitea
365371
commands:
372+
- ./build/test-env-check.sh
366373
- make backend
367374
environment:
368375
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
369376
GOSUMDB: sum.golang.org
370377
TAGS: bindata gogit sqlite sqlite_unlock_notify
378+
depends_on:
379+
- prepare-test-env
371380

372381
- name: test-sqlite
373382
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
@@ -461,6 +470,7 @@ steps:
461470

462471
---
463472
kind: pipeline
473+
type: docker
464474
name: update_gitignore_and_licenses
465475

466476
platform:
@@ -497,6 +507,7 @@ steps:
497507

498508
---
499509
kind: pipeline
510+
type: docker
500511
name: release-latest
501512

502513
platform:
@@ -675,6 +686,7 @@ steps:
675686

676687
---
677688
kind: pipeline
689+
type: docker
678690
name: docs
679691

680692
platform:
@@ -716,6 +728,7 @@ steps:
716728

717729
---
718730
kind: pipeline
731+
type: docker
719732
name: docker-linux-amd64-release-version
720733

721734
platform:
@@ -780,6 +793,7 @@ steps:
780793

781794
---
782795
kind: pipeline
796+
type: docker
783797
name: docker-linux-amd64-release
784798

785799
platform:
@@ -844,6 +858,7 @@ steps:
844858

845859
---
846860
kind: pipeline
861+
type: docker
847862
name: docker-linux-arm64-dry-run
848863

849864
platform:
@@ -876,6 +891,7 @@ steps:
876891

877892
---
878893
kind: pipeline
894+
type: docker
879895
name: docker-linux-arm64-release-version
880896

881897
platform:
@@ -943,6 +959,7 @@ steps:
943959

944960
---
945961
kind: pipeline
962+
type: docker
946963
name: docker-linux-arm64-release
947964

948965
platform:
@@ -1009,6 +1026,7 @@ steps:
10091026
- pull_request
10101027
---
10111028
kind: pipeline
1029+
type: docker
10121030
name: docker-manifest-version
10131031

10141032
platform:
@@ -1052,6 +1070,7 @@ depends_on:
10521070

10531071
---
10541072
kind: pipeline
1073+
type: docker
10551074
name: docker-manifest
10561075

10571076
platform:
@@ -1095,6 +1114,7 @@ depends_on:
10951114

10961115
---
10971116
kind: pipeline
1117+
type: docker
10981118
name: notifications
10991119

11001120
platform:

.eslintrc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ reportUnusedDisableDirectives: true
33

44
ignorePatterns:
55
- /web_src/js/vendor
6-
- /templates/repo/activity.tmpl
7-
- /templates/repo/view_file.tmpl
86

97
parserOptions:
108
sourceType: module
@@ -119,7 +117,7 @@ rules:
119117
import/no-amd: [0]
120118
import/no-anonymous-default-export: [0]
121119
import/no-commonjs: [0]
122-
import/no-cycle: [2, {ignoreExternal: true}]
120+
import/no-cycle: [2, {ignoreExternal: true, maxDepth: 1}]
123121
import/no-default-export: [0]
124122
import/no-deprecated: [0]
125123
import/no-dynamic-require: [0]
@@ -370,9 +368,11 @@ rules:
370368
unicorn/no-array-push-push: [2]
371369
unicorn/no-console-spaces: [0]
372370
unicorn/no-document-cookie: [2]
371+
unicorn/no-empty-file: [2]
373372
unicorn/no-fn-reference-in-iterator: [0]
374373
unicorn/no-for-loop: [0]
375374
unicorn/no-hex-escape: [0]
375+
unicorn/no-invalid-remove-event-listener: [2]
376376
unicorn/no-keyword-prefix: [0]
377377
unicorn/no-lonely-if: [2]
378378
unicorn/no-nested-ternary: [0]
@@ -387,6 +387,7 @@ rules:
387387
unicorn/no-unreadable-array-destructuring: [0]
388388
unicorn/no-unsafe-regex: [0]
389389
unicorn/no-unused-properties: [2]
390+
unicorn/no-useless-fallback-in-spread: [2]
390391
unicorn/no-useless-length-check: [2]
391392
unicorn/no-useless-spread: [2]
392393
unicorn/no-useless-undefined: [0]
@@ -404,6 +405,7 @@ rules:
404405
unicorn/prefer-date-now: [2]
405406
unicorn/prefer-default-parameters: [0]
406407
unicorn/prefer-event-key: [2]
408+
unicorn/prefer-export-from: [2]
407409
unicorn/prefer-includes: [2]
408410
unicorn/prefer-math-trunc: [2]
409411
unicorn/prefer-modern-dom-apis: [0]
@@ -436,6 +438,7 @@ rules:
436438
unicorn/require-number-to-fixed-digits-argument: [2]
437439
unicorn/require-post-message-target-origin: [0]
438440
unicorn/string-content: [0]
441+
unicorn/template-indent: [2]
439442
unicorn/throw-new-error: [2]
440443
use-isnan: [2]
441444
valid-typeof: [2, {requireStringLiterals: true}]

.github/pull_request_template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
<!--
2+
13
Please check the following:
24
35
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for bug fixes.
46
2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/master/CONTRIBUTING.md
57
3. Describe what your pull request does and which issue you're targeting (if any)
68
7-
**You MUST delete the content above including this line before posting, otherwise your pull request will be invalid.**
9+
-->

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ _test
99

1010
# IntelliJ
1111
.idea
12+
# Goland's output filename can not be set manually
13+
/go_build_*
1214

1315
# MS VSCode
1416
.vscode

.golangci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ linters:
99
- unused
1010
- structcheck
1111
- varcheck
12-
- golint
1312
- dupl
1413
#- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
1514
- gofmt
1615
- misspell
1716
- gocritic
17+
- bidichk
18+
- ineffassign
1819
enable-all: false
1920
disable-all: true
2021
fast: false
@@ -111,3 +112,6 @@ issues:
111112
linters:
112113
- staticcheck
113114
text: "svc.IsAnInteractiveSession is deprecated: Use IsWindowsService instead."
115+
- path: models/user/openid.go
116+
linters:
117+
- golint

.revive.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ warningCode = 1
2323
[rule.unexported-return]
2424
[rule.indent-error-flow]
2525
[rule.errorf]
26+
[rule.duplicated-imports]

.stylelintrc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
11
extends: stylelint-config-standard
22

3+
overrides:
4+
- files: ["**/*.less"]
5+
customSyntax: postcss-less
6+
37
rules:
8+
alpha-value-notation: null
49
at-rule-empty-line-before: null
510
block-closing-brace-empty-line-before: null
11+
color-function-notation: null
612
color-hex-length: null
713
comment-empty-line-before: null
14+
declaration-block-no-redundant-longhand-properties: null
815
declaration-block-single-line-max-declarations: null
916
declaration-empty-line-before: null
17+
hue-degree-notation: null
1018
indentation: 2
19+
max-line-length: null
1120
no-descending-specificity: null
21+
no-invalid-position-at-import-rule: null
1222
number-leading-zero: never
23+
number-max-precision: null
24+
property-no-vendor-prefix: null
1325
rule-empty-line-before: null
26+
selector-class-pattern: null
27+
selector-id-pattern: null
1428
selector-pseudo-element-colon-notation: double
1529
shorthand-property-no-redundant-values: true
16-
no-invalid-position-at-import-rule: null
30+
string-quotes: null
31+
value-no-vendor-prefix: null

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@ 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.6](https://github.com/go-gitea/gitea/releases/tag/v1.15.6) - 2021-10-28
8+
9+
* BUGFIXES
10+
* Prevent panic in serv.go with Deploy Keys (#17434) (#17435)
11+
* Fix CSV render error (#17406) (#17431)
12+
* Read expected buffer size (#17409) (#17430)
13+
* Ensure that restricted users can access repos for which they are members (#17460) (#17464)
14+
* Make commit-statuses popup show correctly (#17447) (#17466)
15+
* TESTING
16+
* Add integration tests for private.NoServCommand and private.ServCommand (#17456) (#17463)
17+
18+
## [1.15.5](https://github.com/go-gitea/gitea/releases/tag/v1.15.5) - 2021-10-21
19+
20+
* SECURITY
21+
* Upgrade Bluemonday to v1.0.16 (#17372) (#17374)
22+
* Ensure correct SSH permissions check for private and restricted users (#17370) (#17373)
23+
* BUGFIXES
24+
* Prevent NPE in CSV diff rendering when column removed (#17018) (#17377)
25+
* Offer rsa-sha2-512 and rsa-sha2-256 algorithms in internal SSH (#17281) (#17376)
26+
* Don't panic if we fail to parse U2FRegistration data (#17304) (#17371)
27+
* Ensure popup text is aligned left (backport for 1.15) (#17343)
28+
* Ensure that git daemon export ok is created for mirrors (#17243) (#17306)
29+
* Disable core.protectNTFS (#17300) (#17302)
30+
* Use pointer for wrappedConn methods (#17295) (#17296)
31+
* AutoRegistration is supposed to be working with disabled registration (backport) (#17292)
32+
* Handle duplicate keys on GPG key ring (#17242) (#17284)
33+
* Fix SVG side by side comparison link (#17375) (#17391)
34+
735
## [1.15.4](https://github.com/go-gitea/gitea/releases/tag/v1.15.4) - 2021-10-08
836
* BUGFIXES
937
* Raw file API: don't try to interpret 40char filenames as commit SHA (#17185) (#17272)

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@ CMD ["/bin/s6-svscan", "/etc/s6"]
6666
COPY docker/root /
6767
COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
6868
COPY --from=build-env /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini
69+
RUN chmod 755 /usr/bin/entrypoint /app/gitea/gitea /usr/local/bin/environment-to-ini
70+
RUN chmod 755 /etc/s6/gitea/* /etc/s6/openssh/* /etc/s6/.s6-svscan/*
6971
RUN ln -s /app/gitea/gitea /usr/local/bin/gitea

0 commit comments

Comments
 (0)