Skip to content

Commit 67bc21d

Browse files
authored
Merge branch 'main' into fix-repo-links
2 parents cbb54ce + fba7150 commit 67bc21d

File tree

336 files changed

+3415
-2869
lines changed

Some content is hidden

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

336 files changed

+3415
-2869
lines changed

.gitea/issue_template.md

+2-2
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

.github/ISSUE_TEMPLATE/bug-report.yaml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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:
55
- type: markdown
66
attributes:
@@ -14,12 +14,9 @@ body:
1414
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
1515
3. Make sure you are using the latest release and
1616
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
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),
1919
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
2320
- type: textarea
2421
id: description
2522
attributes:
@@ -50,7 +47,7 @@ body:
5047
attributes:
5148
value: |
5249
It's really important to provide pertinent logs
53-
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
50+
Please read https://docs.gitea.com/administration/logging-config#collecting-logs-for-help
5451
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
5552
- type: input
5653
id: logs
@@ -89,6 +86,6 @@ body:
8986
description: What database system are you running?
9087
options:
9188
- PostgreSQL
92-
- MySQL
89+
- MySQL/MariaDB
9390
- MSSQL
9491
- SQLite

.github/ISSUE_TEMPLATE/config.yml

+2-2
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

.github/ISSUE_TEMPLATE/ui.bug-report.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ body:
1313
2. Please ask questions or configuration/deploy problems on our Discord
1414
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
1515
3. Please take a moment to check that your issue doesn't already exist.
16-
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
16+
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq)
1717
5. Please give all relevant information below for bug reports, because
1818
incomplete details will be handled as an invalid report.
1919
6. In particular it's really important to provide pertinent logs. If you are certain that this is a javascript
2020
error, show us the javascript console. If the error appears to relate to Gitea the server you must also give us
21-
DEBUG level logs. (See https://docs.gitea.io/en-us/logging-configuration/#debugging-problems)
21+
DEBUG level logs. (See https://docs.gitea.com/administration/logging-config#collecting-logs-for-help)
2222
- type: textarea
2323
id: description
2424
attributes:

.github/workflows/files-changed.yml

+10
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
- "go.mod"
4444
- "go.sum"
4545
- "Makefile"
46+
- ".golangci.yml"
47+
- ".editorconfig"
4648
4749
frontend:
4850
- "**/*.js"
@@ -51,16 +53,21 @@ jobs:
5153
- "package.json"
5254
- "package-lock.json"
5355
- "Makefile"
56+
- ".eslintrc.yaml"
57+
- ".stylelintrc.yaml"
58+
- ".npmrc"
5459
5560
docs:
5661
- "**/*.md"
5762
- "docs/**"
63+
- ".markdownlint.yaml"
5864
5965
actions:
6066
- ".github/workflows/*"
6167
6268
templates:
6369
- "templates/**/*.tmpl"
70+
- "pyproject.toml"
6471
- "poetry.lock"
6572
6673
docker:
@@ -72,3 +79,6 @@ jobs:
7279
swagger:
7380
- "templates/swagger/v1_json.tmpl"
7481
- "Makefile"
82+
- "package.json"
83+
- "package-lock.json"
84+
- ".spectral.yaml"

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ cpu.out
7575
/public/assets/js
7676
/public/assets/css
7777
/public/assets/fonts
78+
/public/assets/licenses.txt
7879
/public/assets/img/webpack
7980
/vendor
8081
/web_src/fomantic/node_modules

.golangci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ linters:
2929
fast: false
3030

3131
run:
32-
go: "1.20"
32+
go: "1.21"
3333
timeout: 10m
3434
skip-dirs:
3535
- node_modules
@@ -75,7 +75,7 @@ linters-settings:
7575
- name: modifies-value-receiver
7676
gofumpt:
7777
extra-rules: true
78-
lang-version: "1.20"
78+
lang-version: "1.21"
7979
depguard:
8080
rules:
8181
main:

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
## Introduction
6161

6262
This document explains how to contribute changes to the Gitea project. \
63-
It assumes you have followed the [installation instructions](https://docs.gitea.io/en-us/). \
63+
It assumes you have followed the [installation instructions](https://docs.gitea.com/category/installation). \
6464
Sensitive security-related issues should be reported to [security@gitea.io](mailto:security@gitea.io).
6565

6666
For configuring IDEs for Gitea development, see the [contributed IDE configurations](contrib/ide/).

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ or if SQLite support is required:
7979

8080
The `build` target is split into two sub-targets:
8181

82-
- `make backend` which requires [Go Stable](https://go.dev/dl/), required version is defined in [go.mod](/go.mod).
83-
- `make frontend` which requires [Node.js LTS](https://nodejs.org/en/download/) or greater and Internet connectivity to download npm dependencies.
82+
- `make backend` which requires [Go Stable](https://go.dev/dl/), the required version is defined in [go.mod](/go.mod).
83+
- `make frontend` which requires [Node.js LTS](https://nodejs.org/en/download/) or greater.
8484

85-
When building from the official source tarballs which include pre-built frontend files, the `frontend` target will not be triggered, making it possible to build without Node.js and Internet connectivity.
85+
Internet connectivity is required to download the go and npm modules. When building from the official source tarballs which include pre-built frontend files, the `frontend` target will not be triggered, making it possible to build without Node.js.
8686

8787
Parallelism (`make -j <num>`) is not supported.
8888

89-
More info: https://docs.gitea.io/en-us/install-from-source/
89+
More info: https://docs.gitea.com/installation/install-from-source
9090

9191
## Using
9292

@@ -121,8 +121,6 @@ If you have questions that are not covered by the documentation, you can get in
121121

122122
We maintain a list of Gitea-related projects at [gitea/awesome-gitea](https://gitea.com/gitea/awesome-gitea).
123123

124-
The Hugo-based documentation theme is hosted at [gitea/theme](https://gitea.com/gitea/theme).
125-
126124
The official Gitea CLI is developed at [gitea/tea](https://gitea.com/gitea/tea).
127125

128126
## Authors

README_ZH.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Gitea 的首要目标是创建一个极易安装,运行非常快速,安装
6868

6969
## 文档
7070

71-
关于如何安装请访问我们的 [文档站](https://docs.gitea.io/zh-cn/),如果没有找到对应的文档,你也可以通过 [Discord - 英文](https://discord.gg/gitea) 和 QQ群 328432459 来和我们交流。
71+
关于如何安装请访问我们的 [文档站](https://docs.gitea.com/zh-cn/category/installation),如果没有找到对应的文档,你也可以通过 [Discord - 英文](https://discord.gg/gitea) 和 QQ群 328432459 来和我们交流。
7272

7373
## 贡献流程
7474

build/backport-locales.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"path/filepath"
1313
"strings"
1414

15+
"code.gitea.io/gitea/modules/container"
1516
"code.gitea.io/gitea/modules/setting"
1617
)
1718

@@ -58,7 +59,7 @@ func main() {
5859

5960
// use old en-US as the base, and copy the new translations to the old locales
6061
enUsOld := inisOld["options/locale/locale_en-US.ini"]
61-
brokenWarned := map[string]bool{}
62+
brokenWarned := make(container.Set[string])
6263
for path, iniOld := range inisOld {
6364
if iniOld == enUsOld {
6465
continue
@@ -77,7 +78,7 @@ func main() {
7778
broken := oldStr != "" && strings.Count(oldStr, "%") != strings.Count(newStr, "%")
7879
broken = broken || strings.Contains(oldStr, "\n") || strings.Contains(oldStr, "\n")
7980
if broken {
80-
brokenWarned[secOld.Name()+"."+keyEnUs.Name()] = true
81+
brokenWarned.Add(secOld.Name() + "." + keyEnUs.Name())
8182
fmt.Println("----")
8283
fmt.Printf("WARNING: skip broken locale: %s , [%s] %s\n", path, secEnUS.Name(), keyEnUs.Name())
8384
fmt.Printf("\told: %s\n", strings.ReplaceAll(oldStr, "\n", "\\n"))
@@ -103,7 +104,7 @@ func main() {
103104
broken = broken || strings.HasPrefix(str, "`\"")
104105
broken = broken || strings.Count(str, `"`)%2 == 1
105106
broken = broken || strings.Count(str, "`")%2 == 1
106-
if broken && !brokenWarned[sec.Name()+"."+key.Name()] {
107+
if broken && !brokenWarned.Contains(sec.Name()+"."+key.Name()) {
107108
fmt.Printf("WARNING: found broken locale: %s , [%s] %s\n", path, sec.Name(), key.Name())
108109
fmt.Printf("\tstr: %s\n", strings.ReplaceAll(str, "\n", "\\n"))
109110
fmt.Println("----")

build/generate-go-licenses.go

+5-9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
"regexp"
1616
"sort"
1717
"strings"
18+
19+
"code.gitea.io/gitea/modules/container"
1820
)
1921

2022
// regexp is based on go-license, excluding README and NOTICE
@@ -55,20 +57,14 @@ func main() {
5557
// yml
5658
//
5759
// It could be removed once we have a better regex.
58-
excludedExt := map[string]bool{
59-
".gitignore": true,
60-
".go": true,
61-
".mod": true,
62-
".sum": true,
63-
".toml": true,
64-
".yml": true,
65-
}
60+
excludedExt := container.SetOf(".gitignore", ".go", ".mod", ".sum", ".toml", ".yml")
61+
6662
var paths []string
6763
err := filepath.WalkDir(base, func(path string, entry fs.DirEntry, err error) error {
6864
if err != nil {
6965
return err
7066
}
71-
if entry.IsDir() || !licenseRe.MatchString(entry.Name()) || excludedExt[filepath.Ext(entry.Name())] {
67+
if entry.IsDir() || !licenseRe.MatchString(entry.Name()) || excludedExt.Contains(filepath.Ext(entry.Name())) {
7268
return nil
7369
}
7470
paths = append(paths, path)

cmd/cert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Outputs to 'cert.pem' and 'key.pem' and will overwrite existing files.`,
4343
},
4444
&cli.IntFlag{
4545
Name: "rsa-bits",
46-
Value: 2048,
46+
Value: 3072,
4747
Usage: "Size of RSA key to generate. Ignored if --ecdsa-curve is set",
4848
},
4949
&cli.StringFlag{

contrib/gitea-monitoring-mixin/config.libsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
dashboardTimezone: 'default',
88
dashboardRefresh: '1m',
99

10-
// please see https://docs.gitea.io/en-us/config-cheat-sheet/#metrics-metrics
10+
// please see https://docs.gitea.com/administration/config-cheat-sheet#metrics-metrics
1111
// Show issue by repository metrics with format gitea_issues_by_repository{repository="org/repo"} 5.
1212
// Requires Gitea 1.16.0 with ENABLED_ISSUE_BY_REPOSITORY set to true.
1313
showIssuesByRepository: true,

contrib/legal/privacy.html.sample

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<h3>With your Consent</h3>
3939

40-
<p>We share your User Personal Information, if you consent, after letting you know what information will be shared, with whom, and why. For example, if you allow third party applications to access your Account using <a href="https://docs.gitea.io/en-us/oauth2-provider/">OAuth2 providers</a>, we share all information associated with your Account, including private repos and organizations. You may also direct us through your action on Your Gitea Instance to share your User Personal Information, such as when joining an Organization.</p>
40+
<p>We share your User Personal Information, if you consent, after letting you know what information will be shared, with whom, and why. For example, if you allow third party applications to access your Account using <a href="https://docs.gitea.com/development/oauth2-provider">OAuth2 providers</a>, we share all information associated with your Account, including private repos and organizations. You may also direct us through your action on Your Gitea Instance to share your User Personal Information, such as when joining an Organization.</p>
4141

4242
<h3>With Service Providers</h3>
4343

@@ -144,7 +144,7 @@
144144

145145
<h3>Data Portability</h3>
146146

147-
<p>As a Your Gitea Instance User, you can always take your data with you. You can clone your repositories to your computer, or you can <a href="https://docs.gitea.io/en-us/migrations-interfaces/">perform migrations using the provided interfaces</a>, for example.</p>
147+
<p>As a Your Gitea Instance User, you can always take your data with you. You can clone your repositories to your computer, or you can <a href="https://docs.gitea.com/development/migrations-interfaces">perform migrations using the provided interfaces</a>, for example.</p>
148148

149149
<h3>Data Retention and Deletion of Data</h3>
150150

@@ -183,7 +183,7 @@
183183

184184
<h2>Changes to this Privacy Policy</h2>
185185

186-
<p>Although most changes are likely to be minor, Your Gitea Instance may change our Privacy Statement from time to time. We will provide notification to Users of material changes to this Privacy Statement through our Website at least 30 days prior to the change taking effect by posting a notice on our home page or sending email to the primary email address specified in your account.</p>
186+
<p>Although most changes are likely to be minor, Your Gitea Instance may change our Privacy Statement from time to time. We will provide notification to Users of material changes to this Privacy Statement through our Website at least 30 days prior to the change taking effect by posting a notice on our home page or sending email to the primary email address specified in your account.</p>
187187

188188
<h2>Contact</h2>
189189

custom/conf/app.example.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ LEVEL = Info
13391339
;; Define allowed algorithms and their minimum key length (use -1 to disable a type)
13401340
;ED25519 = 256
13411341
;ECDSA = 256
1342-
;RSA = 2047 ; we allow 2047 here because an otherwise valid 2048 bit RSA key can be reported as having 2047 bit length
1342+
;RSA = 3071 ; we allow 3071 here because an otherwise valid 3072 bit RSA key can be reported as having 3071 bit length
13431343
;DSA = -1 ; set to 1024 to switch on
13441344

13451345
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

docker/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Dockerfile is found in root of repository.
44

55
Docker image can be found on [docker hub](https://hub.docker.com/r/gitea/gitea)
66

7-
Documentation on using docker image can be found on [Gitea Docs site](https://docs.gitea.io/en-us/install-with-docker/)
7+
Documentation on using docker image can be found on [Gitea Docs site](https://docs.gitea.com/installation/install-with-docker-rootless)

docker/root/etc/s6/openssh/setup

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111

1212
if [ ! -f /data/ssh/ssh_host_rsa_key ]; then
1313
echo "Generating /data/ssh/ssh_host_rsa_key..."
14-
ssh-keygen -t rsa -b 2048 -f /data/ssh/ssh_host_rsa_key -N "" > /dev/null
14+
ssh-keygen -t rsa -b 3072 -f /data/ssh/ssh_host_rsa_key -N "" > /dev/null
1515
fi
1616

1717
if [ ! -f /data/ssh/ssh_host_ecdsa_key ]; then

docs/content/administration/command-line.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ directory and will overwrite any existing files.
313313
- `--ecdsa-curve value`: ECDSA curve to use to generate a key. Optional. Valid options
314314
are P224, P256, P384, P521.
315315
- `--rsa-bits value`: Size of RSA key to generate. Optional. Ignored if --ecdsa-curve is
316-
set. (default: 2048).
316+
set. (default: 3072).
317317
- `--start-date value`: Creation date. Optional. (format: `Jan 1 15:04:05 2011`).
318318
- `--duration value`: Duration which the certificate is valid for. Optional. (default: 8760h0m0s)
319319
- `--ca`: If provided, this cert generates it's own certificate authority. Optional.

docs/content/administration/command-line.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ menu:
295295
- 选项:
296296
- `--host value`:逗号分隔的主机名和IP地址列表,此证书适用于这些主机。支持使用通配符。必填。
297297
- `--ecdsa-curve value`:用于生成密钥的ECDSA曲线。可选。有效选项为P224、P256、P384、P521。
298-
- `--rsa-bits value`:要生成的RSA密钥的大小。可选。如果设置了--ecdsa-curve,则忽略此选项。(默认值:2048)。
298+
- `--rsa-bits value`:要生成的RSA密钥的大小。可选。如果设置了--ecdsa-curve,则忽略此选项。(默认值:3072)。
299299
- `--start-date value`:证书的创建日期。可选。(格式:`Jan 1 15:04:05 2011`)。
300300
- `--duration value`:证书有效期。可选。(默认值:8760h0m0s)
301301
- `--ca`:如果提供此选项,则证书将生成自己的证书颁发机构。可选。

docs/content/administration/config-cheat-sheet.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ Define allowed algorithms and their minimum key length (use -1 to disable a type
681681

682682
- `ED25519`: **256**
683683
- `ECDSA`: **256**
684-
- `RSA`: **2047**: We set 2047 here because an otherwise valid 2048 RSA key can be reported as 2047 length.
684+
- `RSA`: **3071**: We set 3071 here because an otherwise valid 3072 RSA key can be reported as 3071 length.
685685
- `DSA`: **-1**: DSA is now disabled by default. Set to **1024** to re-enable but ensure you may need to reconfigure your SSHD provider
686686

687687
## Webhook (`webhook`)

docs/content/administration/config-cheat-sheet.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ Gitea 创建以下非唯一队列:
648648

649649
- `ED25519`**256**
650650
- `ECDSA`**256**
651-
- `RSA`**2047**:我们在这里设置为2047,因为一个其他方面有效的2048 RSA密钥可能被报告为2047长度
651+
- `RSA`**3071**:我们在这里设置为2047,因为一个其他方面有效的3072 RSA密钥可能被报告为3071长度
652652
- `DSA`**-1**:默认情况下禁用DSA。设置为**1024**以重新启用,但请注意可能需要重新配置您的SSHD提供者
653653

654654
## Webhook (`webhook`)

0 commit comments

Comments
 (0)