Skip to content

Commit 86dde82

Browse files
committed
Merge branch 'main' into fix-remove-stale-reviewrequests
2 parents 823518f + 87b28b3 commit 86dde82

File tree

3,270 files changed

+105293
-122162
lines changed

Some content is hidden

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

3,270 files changed

+105293
-122162
lines changed

.changelog.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,25 @@ groups:
2222
name: FEATURES
2323
labels:
2424
- type/feature
25-
-
26-
name: API
27-
labels:
28-
- modifies/api
2925
-
3026
name: ENHANCEMENTS
3127
labels:
3228
- type/enhancement
33-
- type/refactoring
34-
- topic/ui
29+
-
30+
name: PERFORMANCE
31+
labels:
32+
- performance/memory
33+
- performance/speed
34+
- performance/bigrepo
35+
- performance/cpu
3536
-
3637
name: BUGFIXES
3738
labels:
3839
- type/bug
40+
-
41+
name: API
42+
labels:
43+
- modifies/api
3944
-
4045
name: TESTING
4146
labels:

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "Gitea DevContainer",
3-
"image": "mcr.microsoft.com/devcontainers/go:1.23-bookworm",
3+
"image": "mcr.microsoft.com/devcontainers/go:1.24-bookworm",
44
"features": {
55
// installs nodejs into container
66
"ghcr.io/devcontainers/features/node:1": {
7-
"version": "20"
7+
"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 & 21 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

@@ -79,18 +70,6 @@ cpu.out
7970
/public/assets/fonts
8071
/public/assets/img/avatar
8172
/vendor
82-
/web_src/fomantic/node_modules
83-
/web_src/fomantic/build/*
84-
!/web_src/fomantic/build/semantic.js
85-
!/web_src/fomantic/build/semantic.css
86-
!/web_src/fomantic/build/themes
87-
/web_src/fomantic/build/themes/*
88-
!/web_src/fomantic/build/themes/default
89-
/web_src/fomantic/build/themes/default/assets/*
90-
!/web_src/fomantic/build/themes/default/assets/fonts
91-
/web_src/fomantic/build/themes/default/assets/fonts/*
92-
!/web_src/fomantic/build/themes/default/assets/fonts/icons.woff2
93-
!/web_src/fomantic/build/themes/default/assets/fonts/outline-icons.woff2
9473
/VERSION
9574
/.air
9675
/.go-licenses

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ insert_final_newline = true
1212
[*.{go,tmpl,html}]
1313
indent_style = tab
1414

15+
[go.*]
16+
indent_style = tab
17+
1518
[templates/custom/*.tmpl]
1619
insert_final_newline = false
1720

1821
[templates/swagger/v1_json.tmpl]
1922
indent_style = space
23+
insert_final_newline = false
2024

2125
[templates/user/auth/oidc_wellknown.tmpl]
2226
indent_style = space

.eslintrc.cjs

Lines changed: 68 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const vitestPlugin = require('@vitest/eslint-plugin');
12
const restrictedSyntax = ['WithStatement', 'ForInStatement', 'LabeledStatement', 'SequenceExpression'];
23

34
module.exports = {
@@ -37,15 +38,20 @@ module.exports = {
3738
'eslint-plugin-regexp',
3839
'eslint-plugin-sonarjs',
3940
'eslint-plugin-unicorn',
40-
'eslint-plugin-vitest',
41-
'eslint-plugin-vitest-globals',
4241
'eslint-plugin-wc',
4342
],
4443
env: {
4544
es2024: true,
4645
node: true,
4746
},
4847
overrides: [
48+
{
49+
files: ['**/*.cjs'],
50+
rules: {
51+
'import-x/no-commonjs': [0],
52+
'@typescript-eslint/no-require-imports': [0],
53+
},
54+
},
4955
{
5056
files: ['web_src/**/*'],
5157
globals: {
@@ -82,59 +88,59 @@ module.exports = {
8288
},
8389
{
8490
files: ['**/*.test.*', 'web_src/js/test/setup.ts'],
85-
env: {
86-
'vitest-globals/env': true,
87-
},
91+
plugins: ['@vitest/eslint-plugin'],
92+
globals: vitestPlugin.environments.env.globals,
8893
rules: {
89-
'vitest/consistent-test-filename': [0],
90-
'vitest/consistent-test-it': [0],
91-
'vitest/expect-expect': [0],
92-
'vitest/max-expects': [0],
93-
'vitest/max-nested-describe': [0],
94-
'vitest/no-alias-methods': [0],
95-
'vitest/no-commented-out-tests': [0],
96-
'vitest/no-conditional-expect': [0],
97-
'vitest/no-conditional-in-test': [0],
98-
'vitest/no-conditional-tests': [0],
99-
'vitest/no-disabled-tests': [0],
100-
'vitest/no-done-callback': [0],
101-
'vitest/no-duplicate-hooks': [0],
102-
'vitest/no-focused-tests': [0],
103-
'vitest/no-hooks': [0],
104-
'vitest/no-identical-title': [2],
105-
'vitest/no-interpolation-in-snapshots': [0],
106-
'vitest/no-large-snapshots': [0],
107-
'vitest/no-mocks-import': [0],
108-
'vitest/no-restricted-matchers': [0],
109-
'vitest/no-restricted-vi-methods': [0],
110-
'vitest/no-standalone-expect': [0],
111-
'vitest/no-test-prefixes': [0],
112-
'vitest/no-test-return-statement': [0],
113-
'vitest/prefer-called-with': [0],
114-
'vitest/prefer-comparison-matcher': [0],
115-
'vitest/prefer-each': [0],
116-
'vitest/prefer-equality-matcher': [0],
117-
'vitest/prefer-expect-resolves': [0],
118-
'vitest/prefer-hooks-in-order': [0],
119-
'vitest/prefer-hooks-on-top': [2],
120-
'vitest/prefer-lowercase-title': [0],
121-
'vitest/prefer-mock-promise-shorthand': [0],
122-
'vitest/prefer-snapshot-hint': [0],
123-
'vitest/prefer-spy-on': [0],
124-
'vitest/prefer-strict-equal': [0],
125-
'vitest/prefer-to-be': [0],
126-
'vitest/prefer-to-be-falsy': [0],
127-
'vitest/prefer-to-be-object': [0],
128-
'vitest/prefer-to-be-truthy': [0],
129-
'vitest/prefer-to-contain': [0],
130-
'vitest/prefer-to-have-length': [0],
131-
'vitest/prefer-todo': [0],
132-
'vitest/require-hook': [0],
133-
'vitest/require-to-throw-message': [0],
134-
'vitest/require-top-level-describe': [0],
135-
'vitest/valid-describe-callback': [2],
136-
'vitest/valid-expect': [2],
137-
'vitest/valid-title': [2],
94+
'github/unescaped-html-literal': [0],
95+
'@vitest/consistent-test-filename': [0],
96+
'@vitest/consistent-test-it': [0],
97+
'@vitest/expect-expect': [0],
98+
'@vitest/max-expects': [0],
99+
'@vitest/max-nested-describe': [0],
100+
'@vitest/no-alias-methods': [0],
101+
'@vitest/no-commented-out-tests': [0],
102+
'@vitest/no-conditional-expect': [0],
103+
'@vitest/no-conditional-in-test': [0],
104+
'@vitest/no-conditional-tests': [0],
105+
'@vitest/no-disabled-tests': [0],
106+
'@vitest/no-done-callback': [0],
107+
'@vitest/no-duplicate-hooks': [0],
108+
'@vitest/no-focused-tests': [2],
109+
'@vitest/no-hooks': [0],
110+
'@vitest/no-identical-title': [2],
111+
'@vitest/no-interpolation-in-snapshots': [0],
112+
'@vitest/no-large-snapshots': [0],
113+
'@vitest/no-mocks-import': [0],
114+
'@vitest/no-restricted-matchers': [0],
115+
'@vitest/no-restricted-vi-methods': [0],
116+
'@vitest/no-standalone-expect': [0],
117+
'@vitest/no-test-prefixes': [0],
118+
'@vitest/no-test-return-statement': [0],
119+
'@vitest/prefer-called-with': [0],
120+
'@vitest/prefer-comparison-matcher': [0],
121+
'@vitest/prefer-each': [0],
122+
'@vitest/prefer-equality-matcher': [0],
123+
'@vitest/prefer-expect-resolves': [0],
124+
'@vitest/prefer-hooks-in-order': [0],
125+
'@vitest/prefer-hooks-on-top': [2],
126+
'@vitest/prefer-lowercase-title': [0],
127+
'@vitest/prefer-mock-promise-shorthand': [0],
128+
'@vitest/prefer-snapshot-hint': [0],
129+
'@vitest/prefer-spy-on': [0],
130+
'@vitest/prefer-strict-equal': [0],
131+
'@vitest/prefer-to-be': [0],
132+
'@vitest/prefer-to-be-falsy': [0],
133+
'@vitest/prefer-to-be-object': [0],
134+
'@vitest/prefer-to-be-truthy': [0],
135+
'@vitest/prefer-to-contain': [0],
136+
'@vitest/prefer-to-have-length': [0],
137+
'@vitest/prefer-todo': [0],
138+
'@vitest/require-hook': [0],
139+
'@vitest/require-to-throw-message': [0],
140+
'@vitest/require-top-level-describe': [0],
141+
'@vitest/valid-describe-callback': [2],
142+
'@vitest/valid-expect': [2],
143+
'@vitest/valid-title': [2],
138144
},
139145
},
140146
{
@@ -150,7 +156,7 @@ module.exports = {
150156
'eslint-plugin-vue-scoped-css',
151157
],
152158
extends: [
153-
'plugin:vue/vue3-recommended',
159+
'plugin:vue/recommended',
154160
'plugin:vue-scoped-css/vue3-recommended',
155161
],
156162
rules: {
@@ -163,7 +169,7 @@ module.exports = {
163169
{
164170
files: ['tests/e2e/**'],
165171
plugins: [
166-
'eslint-plugin-playwright'
172+
'eslint-plugin-playwright',
167173
],
168174
extends: [
169175
'plugin:playwright/recommended',
@@ -320,6 +326,7 @@ module.exports = {
320326
'@typescript-eslint/no-unnecessary-type-arguments': [0],
321327
'@typescript-eslint/no-unnecessary-type-assertion': [2],
322328
'@typescript-eslint/no-unnecessary-type-constraint': [2],
329+
'@typescript-eslint/no-unnecessary-type-conversion': [2],
323330
'@typescript-eslint/no-unsafe-argument': [0],
324331
'@typescript-eslint/no-unsafe-assignment': [0],
325332
'@typescript-eslint/no-unsafe-call': [0],
@@ -331,7 +338,7 @@ module.exports = {
331338
'@typescript-eslint/no-unsafe-unary-minus': [2],
332339
'@typescript-eslint/no-unused-expressions': [0],
333340
'@typescript-eslint/no-unused-vars': [2, {vars: 'all', args: 'all', caughtErrors: 'all', ignoreRestSiblings: false, argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_'}],
334-
'@typescript-eslint/no-use-before-define': [0],
341+
'@typescript-eslint/no-use-before-define': [2, {functions: false, classes: true, variables: true, allowNamedExports: true, typedefs: false, enums: false, ignoreTypeReferences: true}],
335342
'@typescript-eslint/no-useless-constructor': [0],
336343
'@typescript-eslint/no-useless-empty-export': [0],
337344
'@typescript-eslint/no-wrapper-object-types': [2],
@@ -418,7 +425,7 @@ module.exports = {
418425
'github/no-useless-passive': [2],
419426
'github/prefer-observers': [2],
420427
'github/require-passive-events': [2],
421-
'github/unescaped-html-literal': [0],
428+
'github/unescaped-html-literal': [2],
422429
'grouped-accessor-pairs': [2],
423430
'guard-for-in': [0],
424431
'id-blacklist': [0],
@@ -477,7 +484,7 @@ module.exports = {
477484
'max-nested-callbacks': [0],
478485
'max-params': [0],
479486
'max-statements': [0],
480-
'multiline-comment-style': [2, 'separate-lines'],
487+
'multiline-comment-style': [0],
481488
'new-cap': [0],
482489
'no-alert': [0],
483490
'no-array-constructor': [0], // handled by @typescript-eslint/no-array-constructor
@@ -639,7 +646,7 @@ module.exports = {
639646
'no-multi-str': [2],
640647
'no-negated-condition': [0],
641648
'no-nested-ternary': [0],
642-
'no-new-func': [2],
649+
'no-new-func': [0], // handled by @typescript-eslint/no-implied-eval
643650
'no-new-native-nonconstructor': [2],
644651
'no-new-object': [2],
645652
'no-new-symbol': [2],
@@ -688,7 +695,7 @@ module.exports = {
688695
'no-unused-labels': [2],
689696
'no-unused-private-class-members': [2],
690697
'no-unused-vars': [0], // handled by @typescript-eslint/no-unused-vars
691-
'no-use-before-define': [2, {functions: false, classes: true, variables: true, allowNamedExports: true}],
698+
'no-use-before-define': [0], // handled by @typescript-eslint/no-use-before-define
692699
'no-use-extend-native/no-use-extend-native': [2],
693700
'no-useless-backreference': [2],
694701
'no-useless-call': [2],

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
/assets/*.json linguist-generated
55
/public/assets/img/svg/*.svg linguist-generated
66
/templates/swagger/v1_json.tmpl linguist-generated
7+
/options/fileicon/** linguist-generated
78
/vendor/** -text -eol linguist-vendored
8-
/web_src/fomantic/build/** linguist-generated
9-
/web_src/fomantic/_site/globals/site.variables linguist-language=Less
109
/web_src/js/vendor/** -text -eol linguist-vendored
1110
Dockerfile.* linguist-language=Dockerfile

.github/labeler.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ modifies/internal:
4141
- ".dockerignore"
4242
- "docker/**"
4343
- ".editorconfig"
44-
- ".eslintrc.yaml"
44+
- ".eslintrc.cjs"
4545
- ".golangci.yml"
4646
- ".gitpod.yml"
4747
- ".markdownlint.yaml"
4848
- ".spectral.yaml"
4949
- "stylelint.config.js"
5050
- ".yamllint.yaml"
5151
- ".github/**"
52-
- ".gitea/"
52+
- ".gitea/**"
5353
- ".devcontainer/**"
5454
- "build.go"
5555
- "build/**"
@@ -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

@@ -73,11 +73,21 @@ modifies/go:
7373
modifies/frontend:
7474
- changed-files:
7575
- any-glob-to-any-file:
76-
- "**/*.js"
77-
- "**/*.ts"
78-
- "**/*.vue"
76+
- "*.js"
77+
- "*.ts"
78+
- "web_src/**"
7979

8080
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/cron-licenses.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: cron-licenses
22

33
on:
4-
schedule:
5-
- cron: "7 0 * * 1" # every Monday at 00:07 UTC
4+
# schedule:
5+
# - cron: "7 0 * * 1" # every Monday at 00:07 UTC
66
workflow_dispatch:
77

88
jobs:
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
go-version-file: go.mod
1717
check-latest: true
18-
- run: make generate-license generate-gitignore
18+
- run: make generate-gitignore
1919
timeout-minutes: 40
2020
- name: push translations to repo
2121
uses: appleboy/[email protected]

0 commit comments

Comments
 (0)