Skip to content

Commit 5229f60

Browse files
authored
Merge branch 'main' into main
2 parents 754ce8e + 3aed8ae commit 5229f60

File tree

960 files changed

+12253
-8104
lines changed

Some content is hidden

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

960 files changed

+12253
-8104
lines changed

.eslintrc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ rules:
723723
unicorn/no-this-assignment: [2]
724724
unicorn/no-typeof-undefined: [2]
725725
unicorn/no-unnecessary-await: [2]
726+
unicorn/no-unnecessary-polyfills: [2]
726727
unicorn/no-unreadable-array-destructuring: [0]
727728
unicorn/no-unreadable-iife: [2]
728729
unicorn/no-unused-properties: [2]

.github/workflows/cron-licenses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
if: github.repository == 'go-gitea/gitea'
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: actions/setup-go@v4
14+
- uses: actions/setup-go@v5
1515
with:
1616
go-version-file: go.mod
1717
check-latest: true

.github/workflows/cron-lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: github.repository == 'go-gitea/gitea'
1919
steps:
20-
- uses: dessant/lock-threads@v4
20+
- uses: dessant/lock-threads@v5
2121
with:
2222
issue-inactive-days: 45

.github/workflows/files-changed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
yaml: ${{ steps.changes.outputs.yaml }}
3636
steps:
3737
- uses: actions/checkout@v4
38-
- uses: dorny/paths-filter@v2
38+
- uses: dorny/paths-filter@v3
3939
id: changes
4040
with:
4141
filters: |

.github/workflows/pull-compliance.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true
@@ -70,7 +70,7 @@ jobs:
7070
runs-on: ubuntu-latest
7171
steps:
7272
- uses: actions/checkout@v4
73-
- uses: actions/setup-go@v4
73+
- uses: actions/setup-go@v5
7474
with:
7575
go-version-file: go.mod
7676
check-latest: true
@@ -87,7 +87,7 @@ jobs:
8787
runs-on: ubuntu-latest
8888
steps:
8989
- uses: actions/checkout@v4
90-
- uses: actions/setup-go@v4
90+
- uses: actions/setup-go@v5
9191
with:
9292
go-version-file: go.mod
9393
check-latest: true
@@ -102,7 +102,7 @@ jobs:
102102
runs-on: ubuntu-latest
103103
steps:
104104
- uses: actions/checkout@v4
105-
- uses: actions/setup-go@v4
105+
- uses: actions/setup-go@v5
106106
with:
107107
go-version-file: go.mod
108108
check-latest: true
@@ -130,7 +130,7 @@ jobs:
130130
runs-on: ubuntu-latest
131131
steps:
132132
- uses: actions/checkout@v4
133-
- uses: actions/setup-go@v4
133+
- uses: actions/setup-go@v5
134134
with:
135135
go-version-file: go.mod
136136
check-latest: true
@@ -175,7 +175,7 @@ jobs:
175175
runs-on: ubuntu-latest
176176
steps:
177177
- uses: actions/checkout@v4
178-
- uses: actions/setup-go@v4
178+
- uses: actions/setup-go@v5
179179
with:
180180
go-version-file: go.mod
181181
check-latest: true

.github/workflows/pull-db-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- "9000:9000"
4040
steps:
4141
- uses: actions/checkout@v4
42-
- uses: actions/setup-go@v4
42+
- uses: actions/setup-go@v5
4343
with:
4444
go-version-file: go.mod
4545
check-latest: true
@@ -64,7 +64,7 @@ jobs:
6464
runs-on: ubuntu-latest
6565
steps:
6666
- uses: actions/checkout@v4
67-
- uses: actions/setup-go@v4
67+
- uses: actions/setup-go@v5
6868
with:
6969
go-version-file: go.mod
7070
check-latest: true
@@ -115,7 +115,7 @@ jobs:
115115
- "9000:9000"
116116
steps:
117117
- uses: actions/checkout@v4
118-
- uses: actions/setup-go@v4
118+
- uses: actions/setup-go@v5
119119
with:
120120
go-version-file: go.mod
121121
check-latest: true
@@ -165,7 +165,7 @@ jobs:
165165
- "993:993"
166166
steps:
167167
- uses: actions/checkout@v4
168-
- uses: actions/setup-go@v4
168+
- uses: actions/setup-go@v5
169169
with:
170170
go-version-file: go.mod
171171
check-latest: true
@@ -198,7 +198,7 @@ jobs:
198198
- "1433:1433"
199199
steps:
200200
- uses: actions/checkout@v4
201-
- uses: actions/setup-go@v4
201+
- uses: actions/setup-go@v5
202202
with:
203203
go-version-file: go.mod
204204
check-latest: true

.github/workflows/pull-e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true

.github/workflows/release-nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
1919
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
2020
- run: git fetch --unshallow --quiet --tags --force
21-
- uses: actions/setup-go@v4
21+
- uses: actions/setup-go@v5
2222
with:
2323
go-version-file: go.mod
2424
check-latest: true
@@ -64,7 +64,7 @@ jobs:
6464
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
6565
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
6666
- run: git fetch --unshallow --quiet --tags --force
67-
- uses: actions/setup-go@v4
67+
- uses: actions/setup-go@v5
6868
with:
6969
go-version-file: go.mod
7070
check-latest: true
@@ -101,7 +101,7 @@ jobs:
101101
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
102102
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
103103
- run: git fetch --unshallow --quiet --tags --force
104-
- uses: actions/setup-go@v4
104+
- uses: actions/setup-go@v5
105105
with:
106106
go-version-file: go.mod
107107
check-latest: true

.github/workflows/release-tag-rc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
1818
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
1919
- run: git fetch --unshallow --quiet --tags --force
20-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true

.github/workflows/release-tag-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
2020
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
2121
- run: git fetch --unshallow --quiet --tags --force
22-
- uses: actions/setup-go@v4
22+
- uses: actions/setup-go@v5
2323
with:
2424
go-version-file: go.mod
2525
check-latest: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ _test
1111
.idea
1212
# Goland's output filename can not be set manually
1313
/go_build_*
14+
/gitea_*
1415

1516
# MS VSCode
1617
.vscode

.markdownlint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
commands-show-output: false
22
fenced-code-language: false
33
first-line-h1: false
4-
header-increment: false
4+
heading-increment: false
55
line-length: {code_blocks: false, tables: false, stern: true, line_length: -1}
66
no-alt-text: false
77
no-bare-urls: false
88
no-blanks-blockquote: false
9-
no-emphasis-as-header: false
9+
no-emphasis-as-heading: false
1010
no-empty-links: false
1111
no-hard-tabs: {code_blocks: false}
1212
no-inline-html: false

.stylelintrc.yaml

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins:
22
- stylelint-declaration-strict-value
33
- stylelint-declaration-block-no-ignored-properties
4-
- stylelint-stylistic
4+
- "@stylistic/stylelint-plugin"
55

66
ignoreFiles:
77
- "**/*.go"
@@ -17,6 +17,82 @@ overrides:
1717
customSyntax: postcss-html
1818

1919
rules:
20+
"@stylistic/at-rule-name-case": null
21+
"@stylistic/at-rule-name-newline-after": null
22+
"@stylistic/at-rule-name-space-after": null
23+
"@stylistic/at-rule-semicolon-newline-after": null
24+
"@stylistic/at-rule-semicolon-space-before": null
25+
"@stylistic/block-closing-brace-empty-line-before": null
26+
"@stylistic/block-closing-brace-newline-after": null
27+
"@stylistic/block-closing-brace-newline-before": null
28+
"@stylistic/block-closing-brace-space-after": null
29+
"@stylistic/block-closing-brace-space-before": null
30+
"@stylistic/block-opening-brace-newline-after": null
31+
"@stylistic/block-opening-brace-newline-before": null
32+
"@stylistic/block-opening-brace-space-after": null
33+
"@stylistic/block-opening-brace-space-before": null
34+
"@stylistic/color-hex-case": lower
35+
"@stylistic/declaration-bang-space-after": never
36+
"@stylistic/declaration-bang-space-before": null
37+
"@stylistic/declaration-block-semicolon-newline-after": null
38+
"@stylistic/declaration-block-semicolon-newline-before": null
39+
"@stylistic/declaration-block-semicolon-space-after": null
40+
"@stylistic/declaration-block-semicolon-space-before": never
41+
"@stylistic/declaration-block-trailing-semicolon": null
42+
"@stylistic/declaration-colon-newline-after": null
43+
"@stylistic/declaration-colon-space-after": null
44+
"@stylistic/declaration-colon-space-before": never
45+
"@stylistic/function-comma-newline-after": null
46+
"@stylistic/function-comma-newline-before": null
47+
"@stylistic/function-comma-space-after": null
48+
"@stylistic/function-comma-space-before": null
49+
"@stylistic/function-max-empty-lines": 0
50+
"@stylistic/function-parentheses-newline-inside": never-multi-line
51+
"@stylistic/function-parentheses-space-inside": null
52+
"@stylistic/function-whitespace-after": null
53+
"@stylistic/indentation": 2
54+
"@stylistic/linebreaks": null
55+
"@stylistic/max-empty-lines": 1
56+
"@stylistic/max-line-length": null
57+
"@stylistic/media-feature-colon-space-after": null
58+
"@stylistic/media-feature-colon-space-before": never
59+
"@stylistic/media-feature-name-case": null
60+
"@stylistic/media-feature-parentheses-space-inside": null
61+
"@stylistic/media-feature-range-operator-space-after": always
62+
"@stylistic/media-feature-range-operator-space-before": always
63+
"@stylistic/media-query-list-comma-newline-after": null
64+
"@stylistic/media-query-list-comma-newline-before": null
65+
"@stylistic/media-query-list-comma-space-after": null
66+
"@stylistic/media-query-list-comma-space-before": null
67+
"@stylistic/no-empty-first-line": null
68+
"@stylistic/no-eol-whitespace": true
69+
"@stylistic/no-extra-semicolons": true
70+
"@stylistic/no-missing-end-of-source-newline": null
71+
"@stylistic/number-leading-zero": null
72+
"@stylistic/number-no-trailing-zeros": null
73+
"@stylistic/property-case": lower
74+
"@stylistic/selector-attribute-brackets-space-inside": null
75+
"@stylistic/selector-attribute-operator-space-after": null
76+
"@stylistic/selector-attribute-operator-space-before": null
77+
"@stylistic/selector-combinator-space-after": null
78+
"@stylistic/selector-combinator-space-before": null
79+
"@stylistic/selector-descendant-combinator-no-non-space": null
80+
"@stylistic/selector-list-comma-newline-after": null
81+
"@stylistic/selector-list-comma-newline-before": null
82+
"@stylistic/selector-list-comma-space-after": always-single-line
83+
"@stylistic/selector-list-comma-space-before": never-single-line
84+
"@stylistic/selector-max-empty-lines": 0
85+
"@stylistic/selector-pseudo-class-case": lower
86+
"@stylistic/selector-pseudo-class-parentheses-space-inside": never
87+
"@stylistic/selector-pseudo-element-case": lower
88+
"@stylistic/string-quotes": double
89+
"@stylistic/unicode-bom": null
90+
"@stylistic/unit-case": lower
91+
"@stylistic/value-list-comma-newline-after": null
92+
"@stylistic/value-list-comma-newline-before": null
93+
"@stylistic/value-list-comma-space-after": null
94+
"@stylistic/value-list-comma-space-before": null
95+
"@stylistic/value-list-max-empty-lines": 0
2096
alpha-value-notation: null
2197
annotation-no-unknown: true
2298
at-rule-allowed-list: null
@@ -74,7 +150,7 @@ rules:
74150
keyframe-declaration-no-important: true
75151
keyframe-selector-notation: null
76152
keyframes-name-pattern: null
77-
length-zero-no-unit: true
153+
length-zero-no-unit: [true, ignore: [custom-properties], ignoreFunctions: [var]]
78154
max-nesting-depth: null
79155
media-feature-name-allowed-list: null
80156
media-feature-name-disallowed-list: null
@@ -137,82 +213,6 @@ rules:
137213
selector-type-no-unknown: [true, {ignore: [custom-elements]}]
138214
shorthand-property-no-redundant-values: true
139215
string-no-newline: true
140-
stylistic/at-rule-name-case: null
141-
stylistic/at-rule-name-newline-after: null
142-
stylistic/at-rule-name-space-after: null
143-
stylistic/at-rule-semicolon-newline-after: null
144-
stylistic/at-rule-semicolon-space-before: null
145-
stylistic/block-closing-brace-empty-line-before: null
146-
stylistic/block-closing-brace-newline-after: null
147-
stylistic/block-closing-brace-newline-before: null
148-
stylistic/block-closing-brace-space-after: null
149-
stylistic/block-closing-brace-space-before: null
150-
stylistic/block-opening-brace-newline-after: null
151-
stylistic/block-opening-brace-newline-before: null
152-
stylistic/block-opening-brace-space-after: null
153-
stylistic/block-opening-brace-space-before: null
154-
stylistic/color-hex-case: lower
155-
stylistic/declaration-bang-space-after: never
156-
stylistic/declaration-bang-space-before: null
157-
stylistic/declaration-block-semicolon-newline-after: null
158-
stylistic/declaration-block-semicolon-newline-before: null
159-
stylistic/declaration-block-semicolon-space-after: null
160-
stylistic/declaration-block-semicolon-space-before: never
161-
stylistic/declaration-block-trailing-semicolon: null
162-
stylistic/declaration-colon-newline-after: null
163-
stylistic/declaration-colon-space-after: null
164-
stylistic/declaration-colon-space-before: never
165-
stylistic/function-comma-newline-after: null
166-
stylistic/function-comma-newline-before: null
167-
stylistic/function-comma-space-after: null
168-
stylistic/function-comma-space-before: null
169-
stylistic/function-max-empty-lines: 0
170-
stylistic/function-parentheses-newline-inside: never-multi-line
171-
stylistic/function-parentheses-space-inside: null
172-
stylistic/function-whitespace-after: null
173-
stylistic/indentation: 2
174-
stylistic/linebreaks: null
175-
stylistic/max-empty-lines: 1
176-
stylistic/max-line-length: null
177-
stylistic/media-feature-colon-space-after: null
178-
stylistic/media-feature-colon-space-before: never
179-
stylistic/media-feature-name-case: null
180-
stylistic/media-feature-parentheses-space-inside: null
181-
stylistic/media-feature-range-operator-space-after: always
182-
stylistic/media-feature-range-operator-space-before: always
183-
stylistic/media-query-list-comma-newline-after: null
184-
stylistic/media-query-list-comma-newline-before: null
185-
stylistic/media-query-list-comma-space-after: null
186-
stylistic/media-query-list-comma-space-before: null
187-
stylistic/no-empty-first-line: null
188-
stylistic/no-eol-whitespace: true
189-
stylistic/no-extra-semicolons: true
190-
stylistic/no-missing-end-of-source-newline: null
191-
stylistic/number-leading-zero: null
192-
stylistic/number-no-trailing-zeros: null
193-
stylistic/property-case: lower
194-
stylistic/selector-attribute-brackets-space-inside: null
195-
stylistic/selector-attribute-operator-space-after: null
196-
stylistic/selector-attribute-operator-space-before: null
197-
stylistic/selector-combinator-space-after: null
198-
stylistic/selector-combinator-space-before: null
199-
stylistic/selector-descendant-combinator-no-non-space: null
200-
stylistic/selector-list-comma-newline-after: null
201-
stylistic/selector-list-comma-newline-before: null
202-
stylistic/selector-list-comma-space-after: always-single-line
203-
stylistic/selector-list-comma-space-before: never-single-line
204-
stylistic/selector-max-empty-lines: 0
205-
stylistic/selector-pseudo-class-case: lower
206-
stylistic/selector-pseudo-class-parentheses-space-inside: never
207-
stylistic/selector-pseudo-element-case: lower
208-
stylistic/string-quotes: double
209-
stylistic/unicode-bom: null
210-
stylistic/unit-case: lower
211-
stylistic/value-list-comma-newline-after: null
212-
stylistic/value-list-comma-newline-before: null
213-
stylistic/value-list-comma-space-after: null
214-
stylistic/value-list-comma-space-before: null
215-
stylistic/value-list-max-empty-lines: 0
216216
time-min-milliseconds: null
217217
unit-allowed-list: null
218218
unit-disallowed-list: null

0 commit comments

Comments
 (0)