Skip to content

Commit 4786ee1

Browse files
authored
Merge branch 'main' into webhook-bark
2 parents 04e19dc + e03a68c commit 4786ee1

File tree

12 files changed

+881
-941
lines changed

12 files changed

+881
-941
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ linters:
153153
text: '(?i)exitAfterDefer:'
154154
paths:
155155
- node_modules
156+
- .venv
156157
- public
157158
- web_src
158159
- third_party$
@@ -172,6 +173,7 @@ formatters:
172173
generated: lax
173174
paths:
174175
- node_modules
176+
- .venv
175177
- public
176178
- web_src
177179
- third_party$

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ XGO_VERSION := go-1.25.x
3131

3232
AIR_PACKAGE ?= github.com/air-verse/air@v1
3333
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3
34-
GOFUMPT_PACKAGE ?= mvdan.cc/[email protected].1
35-
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.4.0
34+
GOFUMPT_PACKAGE ?= mvdan.cc/[email protected].2
35+
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.5.0
3636
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/[email protected]
3737
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/[email protected]
38-
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@717e3cb29becaaf00e56953556c6d80f8a01b286
38+
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@v0.33.1
3939
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
4040
GO_LICENSES_PACKAGE ?= github.com/google/go-licenses@v1
4141
GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/govulncheck@v1
@@ -258,7 +258,7 @@ clean: ## delete backend and integration files
258258

259259
.PHONY: fmt
260260
fmt: ## format the Go and template code
261-
@GOFUMPT_PACKAGE=$(GOFUMPT_PACKAGE) $(GO) run build/code-batch-process.go gitea-fmt -w '{file-list}'
261+
@GOFUMPT_PACKAGE=$(GOFUMPT_PACKAGE) $(GO) run tools/code-batch-process.go gitea-fmt -w '{file-list}'
262262
$(eval TEMPLATES := $(shell find templates -type f -name '*.tmpl'))
263263
@# strip whitespace after '{{' or '(' and before '}}' or ')' unless there is only
264264
@# whitespace before it
@@ -472,7 +472,7 @@ test\#%:
472472
coverage:
473473
grep '^\(mode: .*\)\|\(.*:[0-9]\+\.[0-9]\+,[0-9]\+\.[0-9]\+ [0-9]\+ [0-9]\+\)$$' coverage.out > coverage-bodged.out
474474
grep '^\(mode: .*\)\|\(.*:[0-9]\+\.[0-9]\+,[0-9]\+\.[0-9]\+ [0-9]\+ [0-9]\+\)$$' integration.coverage.out > integration.coverage-bodged.out
475-
$(GO) run build/gocovmerge.go integration.coverage-bodged.out coverage-bodged.out > coverage.all
475+
$(GO) run tools/gocovmerge.go integration.coverage-bodged.out coverage-bodged.out > coverage.all
476476

477477
.PHONY: unit-test-coverage
478478
unit-test-coverage:

eslint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export default defineConfig([
4949
},
5050
linterOptions: {
5151
reportUnusedDisableDirectives: 2,
52+
reportUnusedInlineConfigs: 2,
5253
},
5354
plugins: {
5455
'@eslint-community/eslint-comments': comments,

modules/git/notes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ func TestGetNonExistentNotes(t *testing.T) {
4747
note := Note{}
4848
err = GetNote(t.Context(), bareRepo1, "non_existent_sha", &note)
4949
assert.Error(t, err)
50-
assert.IsType(t, ErrNotExist{}, err)
50+
assert.ErrorAs(t, err, &ErrNotExist{})
5151
}

modules/setting/indexer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func checkGlobMatch(t *testing.T, globstr string, list []indexerMatchList) {
6565
}
6666
}
6767
if !found {
68-
assert.Equal(t, m.position, -1, "Test string `%s` doesn't match `%s` anywhere; expected @%d", m.value, globstr, m.position)
68+
assert.Equal(t, -1, m.position, "Test string `%s` doesn't match `%s` anywhere; expected @%d", m.value, globstr, m.position)
6969
}
7070
}
7171
}

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"pnpm": ">= 10.0.0"
77
},
88
"dependencies": {
9-
"@citation-js/core": "0.7.18",
10-
"@citation-js/plugin-bibtex": "0.7.18",
11-
"@citation-js/plugin-csl": "0.7.18",
9+
"@citation-js/core": "0.7.21",
10+
"@citation-js/plugin-bibtex": "0.7.21",
11+
"@citation-js/plugin-csl": "0.7.21",
1212
"@citation-js/plugin-software-formats": "0.6.1",
1313
"@github/markdown-toolbar-element": "2.2.3",
1414
"@github/paste-markdown": "1.5.3",
15-
"@github/relative-time-element": "4.4.8",
15+
"@github/relative-time-element": "4.5.0",
1616
"@github/text-expander-element": "2.9.2",
1717
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
1818
"@primer/octicons": "19.19.0",
@@ -21,8 +21,8 @@
2121
"@techknowlogick/license-checker-webpack-plugin": "0.3.0",
2222
"add-asset-webpack-plugin": "3.1.1",
2323
"ansi_up": "6.0.6",
24-
"asciinema-player": "3.12.0",
25-
"chart.js": "4.5.0",
24+
"asciinema-player": "3.12.1",
25+
"chart.js": "4.5.1",
2626
"chartjs-adapter-dayjs-4": "1.0.4",
2727
"chartjs-plugin-zoom": "2.2.0",
2828
"clippie": "4.1.8",
@@ -35,7 +35,7 @@
3535
"htmx.org": "2.0.7",
3636
"idiomorph": "0.7.4",
3737
"jquery": "3.7.1",
38-
"katex": "0.16.23",
38+
"katex": "0.16.25",
3939
"mermaid": "11.12.0",
4040
"mini-css-extract-plugin": "2.9.4",
4141
"monaco-editor": "0.54.0",
@@ -46,7 +46,7 @@
4646
"postcss": "8.5.6",
4747
"postcss-loader": "8.2.0",
4848
"sortablejs": "1.15.6",
49-
"swagger-ui-dist": "5.29.4",
49+
"swagger-ui-dist": "5.29.5",
5050
"tailwindcss": "3.4.17",
5151
"throttle-debounce": "5.0.2",
5252
"tinycolor2": "1.6.0",
@@ -66,8 +66,8 @@
6666
},
6767
"devDependencies": {
6868
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
69-
"@playwright/test": "1.56.0",
70-
"@stylistic/eslint-plugin": "5.4.0",
69+
"@playwright/test": "1.56.1",
70+
"@stylistic/eslint-plugin": "5.5.0",
7171
"@stylistic/stylelint-plugin": "4.0.0",
7272
"@types/codemirror": "5.60.16",
7373
"@types/dropzone": "5.7.9",
@@ -79,10 +79,10 @@
7979
"@types/throttle-debounce": "5.0.2",
8080
"@types/tinycolor2": "1.4.6",
8181
"@types/toastify-js": "1.12.4",
82-
"@typescript-eslint/parser": "8.46.0",
82+
"@typescript-eslint/parser": "8.46.2",
8383
"@vitejs/plugin-vue": "6.0.1",
84-
"@vitest/eslint-plugin": "1.3.16",
85-
"eslint": "9.37.0",
84+
"@vitest/eslint-plugin": "1.3.23",
85+
"eslint": "9.38.0",
8686
"eslint-import-resolver-typescript": "4.4.4",
8787
"eslint-plugin-array-func": "5.1.0",
8888
"eslint-plugin-github": "6.0.0",
@@ -92,11 +92,11 @@
9292
"eslint-plugin-regexp": "2.10.0",
9393
"eslint-plugin-sonarjs": "3.0.5",
9494
"eslint-plugin-unicorn": "61.0.2",
95-
"eslint-plugin-vue": "10.5.0",
95+
"eslint-plugin-vue": "10.5.1",
9696
"eslint-plugin-vue-scoped-css": "2.12.0",
9797
"eslint-plugin-wc": "3.0.2",
9898
"globals": "16.4.0",
99-
"happy-dom": "20.0.2",
99+
"happy-dom": "20.0.8",
100100
"markdownlint-cli": "0.45.0",
101101
"material-icon-theme": "5.27.0",
102102
"nolyfill": "1.0.44",
@@ -108,10 +108,10 @@
108108
"stylelint-declaration-strict-value": "1.10.11",
109109
"stylelint-value-no-unknown-custom-properties": "6.0.1",
110110
"svgo": "4.0.0",
111-
"typescript-eslint": "8.46.0",
112-
"updates": "16.8.0",
111+
"typescript-eslint": "8.46.2",
112+
"updates": "16.8.1",
113113
"vite-string-plugin": "1.4.6",
114-
"vitest": "3.2.4",
114+
"vitest": "4.0.1",
115115
"vue-tsc": "3.1.1"
116116
},
117117
"browserslist": [

0 commit comments

Comments
 (0)