Skip to content

Commit 6c38900

Browse files
authored
Merge branch 'main' into improve-commit-status-ui
2 parents 339dad1 + 98f0220 commit 6c38900

File tree

1,650 files changed

+34713
-32417
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,650 files changed

+34713
-32417
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Gitea DevContainer",
3-
"image": "mcr.microsoft.com/devcontainers/go:1.20",
3+
"image": "mcr.microsoft.com/devcontainers/go:1.21-bullseye",
44
"features": {
55
// installs nodejs into container
66
"ghcr.io/devcontainers/features/node:1": {

.drone.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ steps:
4141
path: /go
4242

4343
- name: static
44-
image: techknowlogick/xgo:go-1.20.x
44+
image: techknowlogick/xgo:go-1.21.x
4545
pull: always
4646
commands:
47-
# Upgrade to node 20 once https://github.com/techknowlogick/xgo/issues/163 is resolved
48-
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get -qqy install nodejs
47+
- apt-get update && apt-get -qqy install ca-certificates curl gnupg
48+
- mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
49+
- echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" > /etc/apt/sources.list.d/nodesource.list
50+
- apt-get update && apt-get -qqy install nodejs
4951
- export PATH=$PATH:$GOPATH/bin
5052
- make release
5153
environment:
@@ -155,7 +157,7 @@ steps:
155157
when:
156158
event:
157159
exclude:
158-
- pull_request
160+
- pull_request
159161

160162
- name: publish-rootless
161163
image: plugins/docker:latest
@@ -177,7 +179,7 @@ steps:
177179
when:
178180
event:
179181
exclude:
180-
- pull_request
182+
- pull_request
181183
---
182184

183185
kind: pipeline
@@ -221,7 +223,7 @@ steps:
221223
when:
222224
event:
223225
exclude:
224-
- pull_request
226+
- pull_request
225227

226228
- name: publish-rootless
227229
image: plugins/docker:latest
@@ -242,7 +244,7 @@ steps:
242244
when:
243245
event:
244246
exclude:
245-
- pull_request
247+
- pull_request
246248

247249
---
248250
kind: pipeline
@@ -290,7 +292,7 @@ steps:
290292
when:
291293
event:
292294
exclude:
293-
- pull_request
295+
- pull_request
294296

295297
- name: publish-rootless
296298
image: plugins/docker:latest
@@ -312,7 +314,7 @@ steps:
312314
when:
313315
event:
314316
exclude:
315-
- pull_request
317+
- pull_request
316318

317319
---
318320
kind: pipeline
@@ -356,7 +358,7 @@ steps:
356358
when:
357359
event:
358360
exclude:
359-
- pull_request
361+
- pull_request
360362

361363
- name: publish-rootless
362364
image: plugins/docker:latest
@@ -377,7 +379,7 @@ steps:
377379
when:
378380
event:
379381
exclude:
380-
- pull_request
382+
- pull_request
381383

382384
---
383385
kind: pipeline
@@ -414,7 +416,7 @@ steps:
414416

415417
trigger:
416418
ref:
417-
- "refs/tags/**"
419+
- "refs/tags/**"
418420
paths:
419421
exclude:
420422
- "docs/**"

.eslintrc.yaml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ parserOptions:
1111
plugins:
1212
- "@eslint-community/eslint-plugin-eslint-comments"
1313
- eslint-plugin-array-func
14-
- eslint-plugin-custom-elements
1514
- eslint-plugin-import
1615
- eslint-plugin-jquery
1716
- eslint-plugin-no-jquery
1817
- eslint-plugin-no-use-extend-native
1918
- eslint-plugin-regexp
2019
- eslint-plugin-sonarjs
2120
- eslint-plugin-unicorn
21+
- eslint-plugin-vitest-globals
2222
- eslint-plugin-wc
2323

2424
env:
@@ -46,6 +46,12 @@ overrides:
4646
- files: ["*.config.*"]
4747
rules:
4848
import/no-unused-modules: [0]
49+
- files: ["**/*.test.*", "web_src/js/test/setup.js"]
50+
env:
51+
vitest-globals/env: true
52+
- files: ["web_src/js/modules/fetch.js", "web_src/js/standalone/**/*"]
53+
rules:
54+
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression]
4955

5056
rules:
5157
"@eslint-community/eslint-comments/disable-enable-pair": [2]
@@ -85,19 +91,6 @@ rules:
8591
consistent-this: [0]
8692
constructor-super: [2]
8793
curly: [0]
88-
custom-elements/expose-class-on-global: [0]
89-
custom-elements/extends-correct-class: [2]
90-
custom-elements/file-name-matches-element: [2]
91-
custom-elements/no-constructor: [2]
92-
custom-elements/no-customized-built-in-elements: [2]
93-
custom-elements/no-dom-traversal-in-attributechangedcallback: [2]
94-
custom-elements/no-dom-traversal-in-connectedcallback: [2]
95-
custom-elements/no-exports-with-element: [2]
96-
custom-elements/no-method-prefixed-with-on: [2]
97-
custom-elements/no-unchecked-define: [0]
98-
custom-elements/one-element-per-file: [0]
99-
custom-elements/tag-name-matches-class: [2]
100-
custom-elements/valid-tag-name: [2]
10194
default-case-last: [2]
10295
default-case: [0]
10396
default-param-last: [0]
@@ -156,7 +149,7 @@ rules:
156149
import/no-restricted-paths: [0]
157150
import/no-self-import: [2]
158151
import/no-unassigned-import: [0]
159-
import/no-unresolved: [2, {commonjs: true, ignore: [\?.+$, ^vitest/]}]
152+
import/no-unresolved: [2, {commonjs: true, ignore: ["\\?.+$", ^vitest/]}]
160153
import/no-unused-modules: [2, {unusedExports: true}]
161154
import/no-useless-path-segments: [2, {commonjs: true}]
162155
import/no-webpack-loader-syntax: [2]
@@ -420,7 +413,7 @@ rules:
420413
no-restricted-exports: [0]
421414
no-restricted-globals: [2, addEventListener, blur, close, closed, confirm, defaultStatus, defaultstatus, error, event, external, find, focus, frameElement, frames, history, innerHeight, innerWidth, isFinite, isNaN, length, location, locationbar, menubar, moveBy, moveTo, name, onblur, onerror, onfocus, onload, onresize, onunload, open, opener, opera, outerHeight, outerWidth, pageXOffset, pageYOffset, parent, print, removeEventListener, resizeBy, resizeTo, screen, screenLeft, screenTop, screenX, screenY, scroll, scrollbars, scrollBy, scrollTo, scrollX, scrollY, self, status, statusbar, stop, toolbar, top, __dirname, __filename]
422415
no-restricted-imports: [0]
423-
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression]
416+
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression, {selector: "CallExpression[callee.name='fetch']", message: "use modules/fetch.js instead"}]
424417
no-return-assign: [0]
425418
no-script-url: [2]
426419
no-self-assign: [2, {props: true}]
@@ -737,14 +730,27 @@ rules:
737730
valid-typeof: [2, {requireStringLiterals: true}]
738731
vars-on-top: [0]
739732
wc/attach-shadow-constructor: [2]
733+
wc/define-tag-after-class-definition: [0]
734+
wc/expose-class-on-global: [0]
735+
wc/file-name-matches-element: [2]
736+
wc/guard-define-call: [0]
740737
wc/guard-super-call: [2]
738+
wc/max-elements-per-file: [0]
739+
wc/no-child-traversal-in-attributechangedcallback: [2]
740+
wc/no-child-traversal-in-connectedcallback: [2]
741741
wc/no-closed-shadow-root: [2]
742742
wc/no-constructor-attributes: [2]
743743
wc/no-constructor-params: [2]
744-
wc/no-invalid-element-name: [0] # covered by custom-elements/valid-tag-name
744+
wc/no-constructor: [2]
745+
wc/no-customized-built-in-elements: [2]
746+
wc/no-exports-with-element: [2]
747+
wc/no-invalid-element-name: [2]
748+
wc/no-invalid-extends: [2]
749+
wc/no-method-prefixed-with-on: [2]
745750
wc/no-self-class: [2]
746751
wc/no-typos: [2]
747752
wc/require-listener-teardown: [2]
753+
wc/tag-name-matches-class: [2]
748754
wrap-iife: [2, inside]
749755
wrap-regex: [0]
750756
yield-star-spacing: [2, after]

.gitea/issue_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
2. Please ask questions or configuration/deploy problems on our Discord
66
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
77
3. Please take a moment to check that your issue doesn't already exist.
8-
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
8+
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq)
99
5. Please give all relevant information below for bug reports, because
1010
incomplete details will be handled as an invalid report.
1111
-->
@@ -26,7 +26,7 @@
2626
- [ ] No
2727
- Log gist:
2828
<!-- It really is important to provide pertinent logs -->
29-
<!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems -->
29+
<!-- Please read https://docs.gitea.com/administration/logging-config#collecting-logs-for-help -->
3030
<!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini -->
3131

3232
## Description

0 commit comments

Comments
 (0)