Skip to content

Commit a1229db

Browse files
authored
Merge branch 'main' into improve-tags-and-releases
2 parents 59e0ddd + 383edf2 commit a1229db

File tree

2,297 files changed

+43192
-36278
lines changed

Some content is hidden

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

2,297 files changed

+43192
-36278
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
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": {
@@ -23,7 +23,8 @@
2323
"Vue.volar",
2424
"ms-azuretools.vscode-docker",
2525
"zixuanchen.vitest-explorer",
26-
"qwtel.sqlite-viewer"
26+
"qwtel.sqlite-viewer",
27+
"GitHub.vscode-pull-request-github"
2728
]
2829
}
2930
},

.dockerignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ cpu.out
7575
/yarn.lock
7676
/yarn-error.log
7777
/npm-debug.log*
78-
/public/js
79-
/public/css
80-
/public/fonts
81-
/public/img/webpack
78+
/public/assets/js
79+
/public/assets/css
80+
/public/assets/fonts
81+
/public/assets/img/webpack
8282
/vendor
8383
/web_src/fomantic/node_modules
8484
/web_src/fomantic/build/*

.drone.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ 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+
- curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get -qqy install nodejs
4948
- export PATH=$PATH:$GOPATH/bin
5049
- make release
5150
environment:
@@ -155,7 +154,7 @@ steps:
155154
when:
156155
event:
157156
exclude:
158-
- pull_request
157+
- pull_request
159158

160159
- name: publish-rootless
161160
image: plugins/docker:latest
@@ -177,7 +176,7 @@ steps:
177176
when:
178177
event:
179178
exclude:
180-
- pull_request
179+
- pull_request
181180
---
182181

183182
kind: pipeline
@@ -221,7 +220,7 @@ steps:
221220
when:
222221
event:
223222
exclude:
224-
- pull_request
223+
- pull_request
225224

226225
- name: publish-rootless
227226
image: plugins/docker:latest
@@ -242,7 +241,7 @@ steps:
242241
when:
243242
event:
244243
exclude:
245-
- pull_request
244+
- pull_request
246245

247246
---
248247
kind: pipeline
@@ -290,7 +289,7 @@ steps:
290289
when:
291290
event:
292291
exclude:
293-
- pull_request
292+
- pull_request
294293

295294
- name: publish-rootless
296295
image: plugins/docker:latest
@@ -312,7 +311,7 @@ steps:
312311
when:
313312
event:
314313
exclude:
315-
- pull_request
314+
- pull_request
316315

317316
---
318317
kind: pipeline
@@ -356,7 +355,7 @@ steps:
356355
when:
357356
event:
358357
exclude:
359-
- pull_request
358+
- pull_request
360359

361360
- name: publish-rootless
362361
image: plugins/docker:latest
@@ -377,7 +376,7 @@ steps:
377376
when:
378377
event:
379378
exclude:
380-
- pull_request
379+
- pull_request
381380

382381
---
383382
kind: pipeline
@@ -414,7 +413,7 @@ steps:
414413

415414
trigger:
416415
ref:
417-
- "refs/tags/**"
416+
- "refs/tags/**"
418417
paths:
419418
exclude:
420419
- "docs/**"

.eslintrc.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ overrides:
4646
- files: ["*.config.*"]
4747
rules:
4848
import/no-unused-modules: [0]
49+
- files: ["web_src/js/modules/fetch.js", "web_src/js/standalone/**/*"]
50+
rules:
51+
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression]
4952

5053
rules:
5154
"@eslint-community/eslint-comments/disable-enable-pair": [2]
@@ -156,7 +159,7 @@ rules:
156159
import/no-restricted-paths: [0]
157160
import/no-self-import: [2]
158161
import/no-unassigned-import: [0]
159-
import/no-unresolved: [2, {commonjs: true, ignore: [\?.+$, ^vitest/]}]
162+
import/no-unresolved: [2, {commonjs: true, ignore: ["\\?.+$", ^vitest/]}]
160163
import/no-unused-modules: [2, {unusedExports: true}]
161164
import/no-useless-path-segments: [2, {commonjs: true}]
162165
import/no-webpack-loader-syntax: [2]
@@ -420,9 +423,8 @@ rules:
420423
no-restricted-exports: [0]
421424
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]
422425
no-restricted-imports: [0]
423-
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement]
426+
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression, {selector: "CallExpression[callee.name='fetch']", message: "use modules/fetch.js instead"}]
424427
no-return-assign: [0]
425-
no-return-await: [0]
426428
no-script-url: [2]
427429
no-self-assign: [2, {props: true}]
428430
no-self-compare: [2]
@@ -666,7 +668,6 @@ rules:
666668
unicorn/no-unnecessary-await: [2]
667669
unicorn/no-unreadable-array-destructuring: [0]
668670
unicorn/no-unreadable-iife: [2]
669-
unicorn/no-unsafe-regex: [0]
670671
unicorn/no-unused-properties: [2]
671672
unicorn/no-useless-fallback-in-spread: [2]
672673
unicorn/no-useless-length-check: [2]

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
* text=auto eol=lf
22
*.tmpl linguist-language=Handlebars
33
/assets/*.json linguist-generated
4-
/public/img/svg/*.svg linguist-generated
4+
/public/assets/img/svg/*.svg linguist-generated
55
/templates/swagger/v1_json.tmpl linguist-generated
66
/vendor/** -text -eol linguist-vendored
77
/web_src/fomantic/build/** linguist-generated

.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
Lines changed: 88 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,91 @@
11
name: Bug Report
22
description: Found something you weren't expecting? Report it here!
3-
labels: kind/bug
3+
labels: ["kind/bug"]
44
body:
5-
- type: markdown
6-
attributes:
7-
value: |
8-
NOTE: If your issue is a security concern, please send an email to [email protected] instead of opening a public issue.
9-
- type: markdown
10-
attributes:
11-
value: |
12-
1. Please speak English, this is the language all maintainers can speak and write.
13-
2. Please ask questions or configuration/deploy problems on our Discord
14-
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
15-
3. Make sure you are using the latest release and
16-
take a moment to check that your issue hasn't been reported before.
17-
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
18-
5. Please give all relevant information below for bug reports, because
19-
incomplete details will be handled as an invalid report.
20-
6. In particular it's really important to provide pertinent logs. You must give us DEBUG level logs.
21-
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
22-
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
23-
- type: textarea
24-
id: description
25-
attributes:
26-
label: Description
27-
description: |
28-
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see below)
29-
If you are using a proxy or a CDN (e.g. Cloudflare) in front of Gitea, please disable the proxy/CDN fully and access Gitea directly to confirm the issue still persists without those services.
30-
- type: input
31-
id: gitea-ver
32-
attributes:
33-
label: Gitea Version
34-
description: Gitea version (or commit reference) of your instance
35-
validations:
36-
required: true
37-
- type: dropdown
38-
id: can-reproduce
39-
attributes:
40-
label: Can you reproduce the bug on the Gitea demo site?
41-
description: |
42-
If so, please provide a URL in the Description field
43-
URL of Gitea demo: https://try.gitea.io
44-
options:
45-
- "Yes"
46-
- "No"
47-
validations:
48-
required: true
49-
- type: markdown
50-
attributes:
51-
value: |
52-
It's really important to provide pertinent logs
53-
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
54-
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
55-
- type: input
56-
id: logs
57-
attributes:
58-
label: Log Gist
59-
description: Please provide a gist URL of your logs, with any sensitive information (e.g. API keys) removed/hidden
60-
- type: textarea
61-
id: screenshots
62-
attributes:
63-
label: Screenshots
64-
description: If this issue involves the Web Interface, please provide one or more screenshots
65-
- type: input
66-
id: git-ver
67-
attributes:
68-
label: Git Version
69-
description: The version of git running on the server
70-
- type: input
71-
id: os-ver
72-
attributes:
73-
label: Operating System
74-
description: The operating system you are using to run Gitea
75-
- type: textarea
76-
id: run-info
77-
attributes:
78-
label: How are you running Gitea?
79-
description: |
80-
Please include information on whether you built Gitea yourself, used one of our downloads, are using https://try.gitea.io or are using some other package
81-
Please also tell us how you are running Gitea, e.g. if it is being run from docker, a command-line, systemd etc.
82-
If you are using a package or systemd tell us what distribution you are using
83-
validations:
84-
required: true
85-
- type: dropdown
86-
id: database
87-
attributes:
88-
label: Database
89-
description: What database system are you running?
90-
options:
91-
- PostgreSQL
92-
- MySQL
93-
- MSSQL
94-
- SQLite
5+
- type: markdown
6+
attributes:
7+
value: |
8+
NOTE: If your issue is a security concern, please send an email to [email protected] instead of opening a public issue.
9+
- type: markdown
10+
attributes:
11+
value: |
12+
1. Please speak English, this is the language all maintainers can speak and write.
13+
2. Please ask questions or configuration/deploy problems on our Discord
14+
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
15+
3. Make sure you are using the latest release and
16+
take a moment to check that your issue hasn't been reported before.
17+
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq)
18+
5. It's really important to provide pertinent details and logs (https://docs.gitea.com/help/support),
19+
incomplete details will be handled as an invalid report.
20+
- type: textarea
21+
id: description
22+
attributes:
23+
label: Description
24+
description: |
25+
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see below)
26+
If you are using a proxy or a CDN (e.g. Cloudflare) in front of Gitea, please disable the proxy/CDN fully and access Gitea directly to confirm the issue still persists without those services.
27+
- type: input
28+
id: gitea-ver
29+
attributes:
30+
label: Gitea Version
31+
description: Gitea version (or commit reference) of your instance
32+
validations:
33+
required: true
34+
- type: dropdown
35+
id: can-reproduce
36+
attributes:
37+
label: Can you reproduce the bug on the Gitea demo site?
38+
description: |
39+
If so, please provide a URL in the Description field
40+
URL of Gitea demo: https://try.gitea.io
41+
options:
42+
- "Yes"
43+
- "No"
44+
validations:
45+
required: true
46+
- type: markdown
47+
attributes:
48+
value: |
49+
It's really important to provide pertinent logs
50+
Please read https://docs.gitea.com/administration/logging-config#collecting-logs-for-help
51+
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
52+
- type: input
53+
id: logs
54+
attributes:
55+
label: Log Gist
56+
description: Please provide a gist URL of your logs, with any sensitive information (e.g. API keys) removed/hidden
57+
- type: textarea
58+
id: screenshots
59+
attributes:
60+
label: Screenshots
61+
description: If this issue involves the Web Interface, please provide one or more screenshots
62+
- type: input
63+
id: git-ver
64+
attributes:
65+
label: Git Version
66+
description: The version of git running on the server
67+
- type: input
68+
id: os-ver
69+
attributes:
70+
label: Operating System
71+
description: The operating system you are using to run Gitea
72+
- type: textarea
73+
id: run-info
74+
attributes:
75+
label: How are you running Gitea?
76+
description: |
77+
Please include information on whether you built Gitea yourself, used one of our downloads, are using https://try.gitea.io or are using some other package
78+
Please also tell us how you are running Gitea, e.g. if it is being run from docker, a command-line, systemd etc.
79+
If you are using a package or systemd tell us what distribution you are using
80+
validations:
81+
required: true
82+
- type: dropdown
83+
id: database
84+
attributes:
85+
label: Database
86+
description: What database system are you running?
87+
options:
88+
- PostgreSQL
89+
- MySQL/MariaDB
90+
- MSSQL
91+
- SQLite

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ contact_links:
88
about: Please ask questions and discuss configuration or deployment problems here.
99
- name: Discourse Forum
1010
url: https://discourse.gitea.io
11-
about: Questions and configuration or deployment problems can also be discussed on our forum.
11+
about: Questions and configuration or deployment problems can also be discussed on our forum.
1212
- name: Frequently Asked Questions
13-
url: https://docs.gitea.io/en-us/faq
13+
url: https://docs.gitea.com/help/faq
1414
about: Please check if your question isn't mentioned here.
1515
- name: Crowdin Translations
1616
url: https://crowdin.com/project/gitea

0 commit comments

Comments
 (0)