Skip to content

Commit 1041279

Browse files
authored
Merge branch 'main' into lunny/support_render_openapi
2 parents c24c14a + 438c764 commit 1041279

File tree

614 files changed

+14323
-17269
lines changed

Some content is hidden

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

614 files changed

+14323
-17269
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
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": {

.drone.yml

Lines changed: 2 additions & 3 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:

.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

.github/ISSUE_TEMPLATE/bug-report.yaml

Lines changed: 5 additions & 8 deletions
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

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

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

Lines changed: 2 additions & 2 deletions
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/cron-licenses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-go@v4
1515
with:
16-
go-version: ">=1.20"
16+
go-version: "~1.21"
1717
check-latest: true
1818
- run: make generate-license generate-gitignore
1919
timeout-minutes: 40

.github/workflows/files-changed.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ jobs:
7171
7272
swagger:
7373
- "templates/swagger/v1_json.tmpl"
74+
- "Makefile"

.github/workflows/pull-compliance.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- uses: actions/setup-go@v4
2121
with:
22-
go-version: ">=1.20"
22+
go-version: "~1.21"
2323
check-latest: true
2424
- run: make deps-backend deps-tools
2525
- run: make lint-backend
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v3
6060
- uses: actions/setup-go@v4
6161
with:
62-
go-version: ">=1.20"
62+
go-version: "~1.21"
6363
check-latest: true
6464
- run: make deps-backend deps-tools
6565
- run: make lint-go-windows lint-go-vet
@@ -76,7 +76,7 @@ jobs:
7676
- uses: actions/checkout@v3
7777
- uses: actions/setup-go@v4
7878
with:
79-
go-version: ">=1.20"
79+
go-version: "~1.21"
8080
check-latest: true
8181
- run: make deps-backend deps-tools
8282
- run: make lint-go
@@ -91,7 +91,7 @@ jobs:
9191
- uses: actions/checkout@v3
9292
- uses: actions/setup-go@v4
9393
with:
94-
go-version: ">=1.20"
94+
go-version: "~1.21"
9595
check-latest: true
9696
- run: make deps-backend deps-tools
9797
- run: make --always-make checks-backend # ensure the "go-licenses" make target runs
@@ -119,7 +119,7 @@ jobs:
119119
- uses: actions/checkout@v3
120120
- uses: actions/setup-go@v4
121121
with:
122-
go-version: ">=1.20"
122+
go-version: "~1.21"
123123
check-latest: true
124124
# no frontend build here as backend should be able to build
125125
# even without any frontend files

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v3
4242
- uses: actions/setup-go@v4
4343
with:
44-
go-version: ">=1.20"
44+
go-version: "~1.21"
4545
check-latest: true
4646
- name: Add hosts to /etc/hosts
4747
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts'
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v3
6767
- uses: actions/setup-go@v4
6868
with:
69-
go-version: ">=1.20"
69+
go-version: "~1.21"
7070
check-latest: true
7171
- run: make deps-backend
7272
- run: make backend
@@ -131,7 +131,7 @@ jobs:
131131
- uses: actions/checkout@v3
132132
- uses: actions/setup-go@v4
133133
with:
134-
go-version: ">=1.20"
134+
go-version: "~1.21"
135135
check-latest: true
136136
- name: Add hosts to /etc/hosts
137137
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch meilisearch smtpimap" | sudo tee -a /etc/hosts'
@@ -181,7 +181,7 @@ jobs:
181181
- uses: actions/checkout@v3
182182
- uses: actions/setup-go@v4
183183
with:
184-
go-version: ">=1.20"
184+
go-version: "~1.21"
185185
check-latest: true
186186
- name: Add hosts to /etc/hosts
187187
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts'
@@ -213,7 +213,7 @@ jobs:
213213
- uses: actions/checkout@v3
214214
- uses: actions/setup-go@v4
215215
with:
216-
go-version: ">=1.20"
216+
go-version: "~1.21"
217217
check-latest: true
218218
- name: Add hosts to /etc/hosts
219219
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql8" | sudo tee -a /etc/hosts'
@@ -244,7 +244,7 @@ jobs:
244244
- uses: actions/checkout@v3
245245
- uses: actions/setup-go@v4
246246
with:
247-
go-version: ">=1.20"
247+
go-version: "~1.21"
248248
check-latest: true
249249
- name: Add hosts to /etc/hosts
250250
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql" | sudo tee -a /etc/hosts'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- uses: actions/setup-go@v4
2121
with:
22-
go-version: ">=1.20"
22+
go-version: "~1.21"
2323
check-latest: true
2424
- uses: actions/setup-node@v3
2525
with:

.github/workflows/release-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- run: git fetch --unshallow --quiet --tags --force
1515
- uses: actions/setup-go@v4
1616
with:
17-
go-version: ">=1.20"
17+
go-version: "~1.21"
1818
check-latest: true
1919
- uses: actions/setup-node@v3
2020
with:

.golangci.yml

Lines changed: 2 additions & 2 deletions
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:

CHANGELOG.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,25 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.com).
66

7-
## [1.20.3](https://github.com/go-gitea/gitea/releases/tag/v1.20.3) - 2023-08-07
7+
## [1.20.3](https://github.com/go-gitea/gitea/releases/tag/v1.20.3) - 2023-08-20
88

99
* BREAKING
1010
* Fix the wrong derive path (#26271) (#26318)
1111
* SECURITY
1212
* Fix API leaking Usermail if not logged in (#25097) (#26350)
13+
* FEATURES
14+
* Add ThreadID parameter for Telegram webhooks (#25996) (#26480)
1315
* ENHANCEMENTS
16+
* Add minimum polyfill to support "relative-time-element" in PaleMoon (#26575) (#26578)
17+
* Fix dark theme highlight for "NameNamespace" (#26519) (#26527)
18+
* Detect ogg mime-type as audio or video (#26494) (#26505)
19+
* Use `object-fit: contain` for oauth2 custom icons (#26493) (#26498)
20+
* Move dropzone progress bar to bottom to show filename when uploading (#26492) (#26497)
21+
* Remove last newline from config file (#26468) (#26471)
22+
* Minio: add missing region on client initialization (#26412) (#26438)
23+
* Add pull request review request webhook event (#26401) (#26407)
24+
* Fix text truncate (#26354) (#26384)
25+
* Fix incorrect color of selected assignees when create issue (#26324) (#26372)
1426
* Display human-readable text instead of cryptic filemodes (#26352) (#26358)
1527
* Hide `last indexed SHA` when a repo could not be indexed yet (#26340) (#26345)
1628
* Fix the topic validation rule and suport dots (#26286) (#26303)
@@ -19,6 +31,23 @@ been added to each release, please refer to the [blog](https://blog.gitea.com).
1931
* Fix commit compare style (#26209) (#26226)
2032
* Warn instead of reporting an error when a webhook cannot be found (#26039) (#26211)
2133
* BUGFIXES
34+
* Use "input" event instead of "keyup" event for migration form (#26602) (#26605)
35+
* Do not use deprecated log config options by default (#26592) (#26600)
36+
* Fix "issueReposQueryPattern does not match query" (#26556) (#26564)
37+
* Sync repo's IsEmpty status correctly (#26517) (#26560)
38+
* Fix project filter bugs (#26490) (#26558)
39+
* Use `hidden` over `clip` for text truncation (#26520) (#26522)
40+
* Set "type=button" for editor's toolbar buttons (#26510) (#26518)
41+
* Fix NuGet search endpoints (#25613) (#26499)
42+
* Fix storage path logic especially for relative paths (#26441) (#26481)
43+
* Close stdout correctly for "git blame" (#26470) (#26473)
44+
* Check first if minio bucket exists before trying to create it (#26420) (#26465)
45+
* Avoiding accessing undefined tributeValues #26461 (#26462)
46+
* Call git.InitSimple for runRepoSyncReleases (#26396) (#26450)
47+
* Add transaction when creating pull request created dirty data (#26259) (#26437)
48+
* Fix wrong middleware sequence (#26428) (#26436)
49+
* Fix admin queue page title and fix CI failures (#26409) (#26421)
50+
* Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) (#26405)
2251
* Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex (#26279) (#26368)
2352
* Fix incorrect CLI exit code and duplicate error message (#26346) (#26347)
2453
* Prevent newline errors with Debian packages (#26332) (#26342)
@@ -31,6 +60,8 @@ been added to each release, please refer to the [blog](https://blog.gitea.com).
3160
* Fix attachment clipboard copy on insecure origin (#26224) (#26231)
3261
* Fix access check for org-level project (#26182) (#26223)
3362
* MISC
63+
* Improve profile readme rendering (#25988) (#26453)
64+
* [docs] Add missing backtick in quickstart.zh-cn.md (#26349) (#26357)
3465
* Upgrade x/net to 0.13.0 (#26301)
3566

3667
## [1.20.2](https://github.com/go-gitea/gitea/releases/tag/v1.20.2) - 2023-07-29

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
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 [[email protected]](mailto:[email protected]).
6565

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

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM docker.io/library/golang:1.20-alpine3.18 AS build-env
2+
FROM docker.io/library/golang:1.21-alpine3.18 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}

Dockerfile.rootless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM docker.io/library/golang:1.20-alpine3.18 AS build-env
2+
FROM docker.io/library/golang:1.21-alpine3.18 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ Gary Moon <[email protected]> (@garymoon)
5454
Philip Peterson <[email protected]> (@philip-peterson)
5555
Denys Konovalov <[email protected]> (@denyskon)
5656
Punit Inani <[email protected]> (@puni9869)
57+
CaiCandong <[email protected]> (@caicandong)

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ SHASUM ?= shasum -a 256
2323
HAS_GO := $(shell hash $(GO) > /dev/null 2>&1 && echo yes)
2424
COMMA := ,
2525

26-
XGO_VERSION := go-1.20.x
26+
XGO_VERSION := go-1.21.x
2727

2828
AIR_PACKAGE ?= github.com/cosmtrek/[email protected]
2929
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/cmd/[email protected]
3030
GOFUMPT_PACKAGE ?= mvdan.cc/[email protected]
31-
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3
31+
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1
3232
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/[email protected]
3333
MISSPELL_PACKAGE ?= github.com/client9/misspell/cmd/[email protected]
3434
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/[email protected]
3535
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
3636
GO_LICENSES_PACKAGE ?= github.com/google/[email protected]
37-
GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/[email protected].0
37+
GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/[email protected].1
3838
ACTIONLINT_PACKAGE ?= github.com/rhysd/actionlint/cmd/[email protected]
3939

4040
DOCKER_IMAGE ?= gitea/gitea

0 commit comments

Comments
 (0)