Skip to content

Commit dd8c361

Browse files
committed
Merge branch 'main' into rearrange-clone-panel
# Conflicts: # templates/repo/home.tmpl # web_src/js/index.ts
2 parents 6f8ab5d + e619384 commit dd8c361

File tree

1,232 files changed

+42056
-24920
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,232 files changed

+42056
-24920
lines changed

.eslintrc.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ plugins:
2727
- "@stylistic/eslint-plugin-js"
2828
- "@typescript-eslint/eslint-plugin"
2929
- eslint-plugin-array-func
30-
- eslint-plugin-deprecation
3130
- eslint-plugin-github
3231
- eslint-plugin-i
3332
- eslint-plugin-no-jquery
@@ -248,6 +247,7 @@ rules:
248247
"@typescript-eslint/no-base-to-string": [0]
249248
"@typescript-eslint/no-confusing-non-null-assertion": [2]
250249
"@typescript-eslint/no-confusing-void-expression": [0]
250+
"@typescript-eslint/no-deprecated": [2]
251251
"@typescript-eslint/no-dupe-class-members": [0]
252252
"@typescript-eslint/no-duplicate-enum-values": [2]
253253
"@typescript-eslint/no-duplicate-type-constituents": [2, {ignoreUnions: true}]
@@ -359,7 +359,6 @@ rules:
359359
default-case-last: [2]
360360
default-case: [0]
361361
default-param-last: [0]
362-
deprecation/deprecation: [2]
363362
dot-notation: [0]
364363
eqeqeq: [2]
365364
for-direction: [2]
@@ -525,6 +524,7 @@ rules:
525524
no-jquery/no-data: [0]
526525
no-jquery/no-deferred: [2]
527526
no-jquery/no-delegate: [2]
527+
no-jquery/no-done-fail: [2]
528528
no-jquery/no-each-collection: [0]
529529
no-jquery/no-each-util: [0]
530530
no-jquery/no-each: [0]
@@ -539,6 +539,7 @@ rules:
539539
no-jquery/no-find-util: [2]
540540
no-jquery/no-find: [0]
541541
no-jquery/no-fx-interval: [2]
542+
no-jquery/no-fx: [2]
542543
no-jquery/no-global-eval: [2]
543544
no-jquery/no-global-selector: [0]
544545
no-jquery/no-grep: [2]
@@ -643,7 +644,7 @@ rules:
643644
no-this-before-super: [2]
644645
no-throw-literal: [2]
645646
no-undef-init: [2]
646-
no-undef: [2, {typeof: true}]
647+
no-undef: [2, {typeof: true}] # TODO: disable this rule after tsc passes
647648
no-undefined: [0]
648649
no-underscore-dangle: [0]
649650
no-unexpected-multiline: [2]
@@ -816,7 +817,8 @@ rules:
816817
unicorn/catch-error-name: [0]
817818
unicorn/consistent-destructuring: [2]
818819
unicorn/consistent-empty-array-spread: [2]
819-
unicorn/consistent-function-scoping: [2]
820+
unicorn/consistent-existence-index-check: [0]
821+
unicorn/consistent-function-scoping: [0]
820822
unicorn/custom-error-definition: [0]
821823
unicorn/empty-brace-spaces: [2]
822824
unicorn/error-message: [0]
@@ -892,10 +894,12 @@ rules:
892894
unicorn/prefer-dom-node-text-content: [2]
893895
unicorn/prefer-event-target: [2]
894896
unicorn/prefer-export-from: [0]
897+
unicorn/prefer-global-this: [0]
895898
unicorn/prefer-includes: [2]
896899
unicorn/prefer-json-parse-buffer: [0]
897900
unicorn/prefer-keyboard-event-key: [2]
898901
unicorn/prefer-logical-operator-over-ternary: [2]
902+
unicorn/prefer-math-min-max: [2]
899903
unicorn/prefer-math-trunc: [2]
900904
unicorn/prefer-modern-dom-apis: [0]
901905
unicorn/prefer-modern-math-apis: [2]

.github/labeler.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ modifies/go:
7070
- any-glob-to-any-file:
7171
- "**/*.go"
7272

73-
modifies/js:
73+
modifies/frontend:
7474
- changed-files:
7575
- any-glob-to-any-file:
7676
- "**/*.js"
77+
- "**/*.ts"
7778
- "**/*.vue"
7879

7980
docs-update-needed:

.github/workflows/pull-compliance.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
python-version: "3.12"
3838
- uses: actions/setup-node@v4
3939
with:
40-
node-version: 20
40+
node-version: 22
4141
cache: npm
4242
cache-dependency-path: package-lock.json
4343
- run: pip install poetry
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v4
6767
- uses: actions/setup-node@v4
6868
with:
69-
node-version: 20
69+
node-version: 22
7070
cache: npm
7171
cache-dependency-path: package-lock.json
7272
- run: make deps-frontend
@@ -137,7 +137,7 @@ jobs:
137137
- uses: actions/checkout@v4
138138
- uses: actions/setup-node@v4
139139
with:
140-
node-version: 20
140+
node-version: 22
141141
cache: npm
142142
cache-dependency-path: package-lock.json
143143
- run: make deps-frontend
@@ -186,7 +186,7 @@ jobs:
186186
- uses: actions/checkout@v4
187187
- uses: actions/setup-node@v4
188188
with:
189-
node-version: 20
189+
node-version: 22
190190
cache: npm
191191
cache-dependency-path: package-lock.json
192192
- run: make deps-frontend

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,15 @@ jobs:
154154
runs-on: ubuntu-latest
155155
services:
156156
mysql:
157-
image: mysql:8.0
157+
# the bitnami mysql image has more options than the official one, it's easier to customize
158+
image: bitnami/mysql:8.0
158159
env:
159-
MYSQL_ALLOW_EMPTY_PASSWORD: true
160+
ALLOW_EMPTY_PASSWORD: true
160161
MYSQL_DATABASE: testgitea
161162
ports:
162163
- "3306:3306"
164+
options: >-
165+
--mount type=tmpfs,destination=/bitnami/mysql/data
163166
elasticsearch:
164167
image: elasticsearch:7.5.0
165168
env:
@@ -188,7 +191,8 @@ jobs:
188191
- name: run migration tests
189192
run: make test-mysql-migration
190193
- name: run tests
191-
run: make integration-test-coverage
194+
# run: make integration-test-coverage (at the moment, no coverage is really handled)
195+
run: make test-mysql
192196
env:
193197
TAGS: bindata
194198
RACE_ENABLED: true
@@ -198,7 +202,9 @@ jobs:
198202
test-mssql:
199203
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
200204
needs: files-changed
201-
runs-on: ubuntu-latest
205+
# specifying the version of ubuntu in use as mssql fails on newer kernels
206+
# pending resolution from vendor
207+
runs-on: ubuntu-20.04
202208
services:
203209
mssql:
204210
image: mcr.microsoft.com/mssql/server:2017-latest

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
check-latest: true
2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: 20
26+
node-version: 22
2727
cache: npm
2828
cache-dependency-path: package-lock.json
2929
- run: make deps-frontend frontend deps-backend

.github/workflows/release-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
check-latest: true
2323
- uses: actions/setup-node@v4
2424
with:
25-
node-version: 20
25+
node-version: 22
2626
cache: npm
2727
cache-dependency-path: package-lock.json
2828
- run: make deps-frontend deps-backend

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
check-latest: true
2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: 20
26+
node-version: 22
2727
cache: npm
2828
cache-dependency-path: package-lock.json
2929
- run: make deps-frontend deps-backend

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
check-latest: true
2626
- uses: actions/setup-node@v4
2727
with:
28-
node-version: 20
28+
node-version: 22
2929
cache: npm
3030
cache-dependency-path: package-lock.json
3131
- run: make deps-frontend deps-backend

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ _testmain.go
2828
*.exe
2929
*.test
3030
*.prof
31+
*.tsbuildinfo
3132

3233
*coverage.out
3334
coverage.all

0 commit comments

Comments
 (0)