Skip to content

Commit 8e7f51a

Browse files
committed
Merge branch 'main' into lunny/add_webhook_test_compare_url
2 parents bb82d85 + e7d6f74 commit 8e7f51a

File tree

1,284 files changed

+19772
-18511
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,284 files changed

+19772
-18511
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"version": "lts"
88
},
99
"ghcr.io/devcontainers/features/git-lfs:1.2.2": {},
10-
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
10+
"ghcr.io/jsburckhardt/devcontainer-features/uv:1": {},
1111
"ghcr.io/devcontainers/features/python:1": {
1212
"version": "3.12"
1313
},

.dockerignore

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ _testmain.go
3636
coverage.all
3737
cpu.out
3838

39-
/modules/migration/bindata.go
40-
/modules/migration/bindata.go.hash
41-
/modules/options/bindata.go
42-
/modules/options/bindata.go.hash
43-
/modules/public/bindata.go
44-
/modules/public/bindata.go.hash
45-
/modules/templates/bindata.go
46-
/modules/templates/bindata.go.hash
47-
4839
*.db
4940
*.log
5041

.eslintrc.cjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ module.exports = {
9191
plugins: ['@vitest/eslint-plugin'],
9292
globals: vitestPlugin.environments.env.globals,
9393
rules: {
94+
'github/unescaped-html-literal': [0],
9495
'@vitest/consistent-test-filename': [0],
9596
'@vitest/consistent-test-it': [0],
9697
'@vitest/expect-expect': [0],
@@ -325,6 +326,7 @@ module.exports = {
325326
'@typescript-eslint/no-unnecessary-type-arguments': [0],
326327
'@typescript-eslint/no-unnecessary-type-assertion': [2],
327328
'@typescript-eslint/no-unnecessary-type-constraint': [2],
329+
'@typescript-eslint/no-unnecessary-type-conversion': [2],
328330
'@typescript-eslint/no-unsafe-argument': [0],
329331
'@typescript-eslint/no-unsafe-assignment': [0],
330332
'@typescript-eslint/no-unsafe-call': [0],
@@ -423,7 +425,7 @@ module.exports = {
423425
'github/no-useless-passive': [2],
424426
'github/prefer-observers': [2],
425427
'github/require-passive-events': [2],
426-
'github/unescaped-html-literal': [0],
428+
'github/unescaped-html-literal': [2],
427429
'grouped-accessor-pairs': [2],
428430
'guard-for-in': [0],
429431
'id-blacklist': [0],
@@ -482,7 +484,7 @@ module.exports = {
482484
'max-nested-callbacks': [0],
483485
'max-params': [0],
484486
'max-statements': [0],
485-
'multiline-comment-style': [2, 'separate-lines'],
487+
'multiline-comment-style': [0],
486488
'new-cap': [0],
487489
'no-alert': [0],
488490
'no-array-constructor': [0], // handled by @typescript-eslint/no-array-constructor
@@ -644,7 +646,7 @@ module.exports = {
644646
'no-multi-str': [2],
645647
'no-negated-condition': [0],
646648
'no-nested-ternary': [0],
647-
'no-new-func': [2],
649+
'no-new-func': [0], // handled by @typescript-eslint/no-implied-eval
648650
'no-new-native-nonconstructor': [2],
649651
'no-new-object': [2],
650652
'no-new-symbol': [2],

.github/labeler.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ modifies/dependencies:
6161
- "package.json"
6262
- "package-lock.json"
6363
- "pyproject.toml"
64-
- "poetry.lock"
64+
- "uv.lock"
6565
- "go.mod"
6666
- "go.sum"
6767

@@ -81,3 +81,13 @@ docs-update-needed:
8181
- changed-files:
8282
- any-glob-to-any-file:
8383
- "custom/conf/app.example.ini"
84+
85+
topic/code-linting:
86+
- changed-files:
87+
- any-glob-to-any-file:
88+
- ".eslintrc.cjs"
89+
- ".golangci.yml"
90+
- ".markdownlint.yaml"
91+
- ".spectral.yaml"
92+
- ".yamllint.yaml"
93+
- "stylelint.config.js"

.github/workflows/files-changed.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- "tools/lint-templates-*.js"
7878
- "templates/**/*.tmpl"
7979
- "pyproject.toml"
80-
- "poetry.lock"
80+
- "uv.lock"
8181
8282
docker:
8383
- "Dockerfile"
@@ -98,4 +98,3 @@ jobs:
9898
- "**/*.yaml"
9999
- ".yamllint.yaml"
100100
- "pyproject.toml"
101-
- "poetry.lock"

.github/workflows/pull-compliance.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- uses: actions/checkout@v4
35-
- uses: actions/setup-python@v5
36-
with:
37-
python-version: "3.12"
35+
- uses: astral-sh/setup-uv@v6
36+
- run: uv python install 3.12
3837
- uses: actions/setup-node@v4
3938
with:
4039
node-version: 24
4140
cache: npm
4241
cache-dependency-path: package-lock.json
43-
- run: pip install poetry
4442
- run: make deps-py
4543
- run: make deps-frontend
4644
- run: make lint-templates
@@ -51,10 +49,8 @@ jobs:
5149
runs-on: ubuntu-latest
5250
steps:
5351
- uses: actions/checkout@v4
54-
- uses: actions/setup-python@v5
55-
with:
56-
python-version: "3.12"
57-
- run: pip install poetry
52+
- uses: astral-sh/setup-uv@v6
53+
- run: uv python install 3.12
5854
- run: make deps-py
5955
- run: make lint-yaml
6056

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,15 @@ prime/
109109

110110
# Manpage
111111
/man
112+
113+
# Ignore AI/LLM instruction files
114+
/.claude/
115+
/.cursorrules
116+
/.cursor/
117+
/.goosehints
118+
/.windsurfrules
119+
/.github/copilot-instructions.md
120+
/AGENT.md
121+
/CLAUDE.md
122+
/llms.txt
123+

.golangci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ linters:
4545
desc: do not use the ini package, use gitea's config system instead
4646
- pkg: gitea.com/go-chi/cache
4747
desc: do not use the go-chi cache package, use gitea's cache system
48+
nolintlint:
49+
allow-unused: false
50+
require-explanation: true
51+
require-specific: true
4852
gocritic:
53+
enabled-checks:
54+
- equalFold
4955
disabled-checks:
5056
- ifElseChain
5157
- singleCaseSwitch # Every time this occurred in the code, there was no other way.
@@ -83,6 +89,10 @@ linters:
8389
- name: unreachable-code
8490
- name: var-declaration
8591
- name: var-naming
92+
arguments:
93+
- [] # AllowList - do not remove as args for the rule are positional and won't work without lists first
94+
- [] # DenyList
95+
- - skip-package-name-checks: true # supress errors from underscore in migration packages
8696
staticcheck:
8797
checks:
8898
- all

.ignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
*.min.css
22
*.min.js
33
/assets/*.json
4-
/modules/options/bindata.go
5-
/modules/public/bindata.go
6-
/modules/templates/bindata.go
74
/options/gitignore
85
/options/license
96
/public/assets

CODE_OF_CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ These are the values to which people in the Gitea community should aspire.
3030
- **Be constructive.**
3131
- Avoid derailing: stay on topic; if you want to talk about something else, start a new conversation.
3232
- Avoid unconstructive criticism: don't merely decry the current state of affairs; offer—or at least solicit—suggestions as to how things may be improved.
33-
- Avoid snarking (pithy, unproductive, sniping comments)
33+
- Avoid snarking (pithy, unproductive, sniping comments).
3434
- Avoid discussing potentially offensive or sensitive issues; this all too often leads to unnecessary conflict.
3535
- Avoid microaggressions (brief and commonplace verbal, behavioral and environmental indignities that communicate hostile, derogatory or negative slights and insults to a person or group).
3636
- **Be responsible.**
@@ -42,7 +42,7 @@ People are complicated. You should expect to be misunderstood and to misundersta
4242

4343
### Our Pledge
4444

45-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
45+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
4646

4747
### Our Standards
4848

0 commit comments

Comments
 (0)