Skip to content

Commit d8c1a2e

Browse files
committed
Merge tag 'v1.23.8' into sync-fork
* SECURITY * Fix a bug when uploading file via lfs ssh command (go-gitea#34408) (go-gitea#34411) * Update net package (go-gitea#34228) (go-gitea#34232) * BUGFIXES * Fix releases sidebar navigation link (go-gitea#34436) go-gitea#34439 * Fix bug webhook milestone is not right. (go-gitea#34419) go-gitea#34429 * Fix two missed null value checks on the wiki page. (go-gitea#34205) (go-gitea#34215) * Swift files can be passed either as file or as form value (go-gitea#34068) (go-gitea#34236) * Fix bug when API get pull changed files for deleted head repository (go-gitea#34333) (go-gitea#34368) * Upgrade github v61 -> v71 to fix migrating bug (go-gitea#34389) * Fix bug when visiting comparation page (go-gitea#34334) (go-gitea#34364) * Fix wrong review requests when updating the pull request (go-gitea#34286) (go-gitea#34304) * Fix github migration error when using multiple tokens (go-gitea#34144) (go-gitea#34302) * Explicitly not update indexes when sync database schemas (go-gitea#34281) (go-gitea#34295) * Fix panic when comment is nil (go-gitea#34257) (go-gitea#34277) * Fix project board links to related Pull Requests (go-gitea#34213) (go-gitea#34222) * Don't assume the default wiki branch is master in the wiki API (go-gitea#34244) (go-gitea#34245) * DOCUMENTATION * Update token creation API swagger documentation (go-gitea#34288) (go-gitea#34296) * MISC * Fix CI Build (go-gitea#34315) * Add riscv64 support (go-gitea#34199) (go-gitea#34204) * Bump go version in go.mod (go-gitea#34160) * remove hardcoded 'code' string in clone_panel.tmpl (go-gitea#34153) (go-gitea#34158)
2 parents 202bdb1 + cccd549 commit d8c1a2e

File tree

834 files changed

+16834
-10494
lines changed

Some content is hidden

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

834 files changed

+16834
-10494
lines changed

.eslintrc.yaml

Lines changed: 967 additions & 0 deletions
Large diffs are not rendered by default.

.gitea/issue_template.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!-- NOTE: If your issue is a security concern, please send an email to [email protected] instead of opening a public issue -->
2+
3+
<!--
4+
1. Please speak English, this is the language all maintainers can speak and write.
5+
2. Please ask questions or configuration/deploy problems on our Discord
6+
server (https://discord.gg/gitea) or forum (https://forum.gitea.com).
7+
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.com/help/faq)
9+
5. Please give all relevant information below for bug reports, because
10+
incomplete details will be handled as an invalid report.
11+
-->
12+
13+
- Gitea version (or commit ref):
14+
- Git version:
15+
- Operating system:
16+
<!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package -->
17+
<!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. --->
18+
<!-- If you are using a package or systemd tell us what distribution you are using -->
19+
- Database (use `[x]`):
20+
- [ ] PostgreSQL
21+
- [ ] MySQL
22+
- [ ] MSSQL
23+
- [ ] SQLite
24+
- Can you reproduce the bug at https://demo.gitea.com:
25+
- [ ] Yes (provide example URL)
26+
- [ ] No
27+
- Log gist:
28+
<!-- It really is important to provide pertinent logs -->
29+
<!-- Please read https://docs.gitea.com/administration/logging-config#collecting-logs-for-help -->
30+
<!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini -->
31+
32+
## Description
33+
<!-- If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please
34+
disable the proxy/CDN fully and connect to gitea directly to confirm
35+
the issue still persists without those services. -->
36+
37+
...
38+
39+
40+
## Screenshots
41+
42+
<!-- **If this issue involves the Web Interface, please include a screenshot** -->

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: gitea

.github/pull_request_template.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
Please check the following:
33
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports.
44
2. Make sure you have read contributing guidelines: https://github.com/davidgraymi/bindersnap/blob/main/CONTRIBUTING.md .
5-
3. Describe what your pull request does and which issue you're targeting (if any).
6-
4. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
7-
5. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
8-
6. Delete all these tips before posting.
5+
3. For documentations contribution, please go to https://gitea.com/gitea/docs
6+
4. Describe what your pull request does and which issue you're targeting (if any).
7+
5. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
8+
6. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
9+
7. Delete all these tips before posting.
910
<!-- end tips -->

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,11 @@ jobs:
202202
test-mssql:
203203
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
204204
needs: files-changed
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
205+
# NOTE: mssql-2017 docker image will panic when run on hosts that have Ubuntu newer than 20.04
206+
runs-on: ubuntu-latest
208207
services:
209208
mssql:
210-
image: mcr.microsoft.com/mssql/server:2017-latest
209+
image: mcr.microsoft.com/mssql/server:2019-latest
211210
env:
212211
ACCEPT_EULA: Y
213212
MSSQL_PID: Standard

.github/workflows/release-nightly.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
6060
nightly-docker-rootful:
6161
runs-on: namespace-profile-gitea-release-docker
62+
permissions:
63+
packages: write # to publish to ghcr.io
6264
steps:
6365
- uses: actions/checkout@v4
6466
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
@@ -85,17 +87,27 @@ jobs:
8587
with:
8688
username: ${{ secrets.DOCKERHUB_USERNAME }}
8789
password: ${{ secrets.DOCKERHUB_TOKEN }}
90+
- name: Login to GHCR using PAT
91+
uses: docker/login-action@v3
92+
with:
93+
registry: ghcr.io
94+
username: ${{ github.repository_owner }}
95+
password: ${{ secrets.GITHUB_TOKEN }}
8896
- name: fetch go modules
8997
run: make vendor
9098
- name: build rootful docker image
9199
uses: docker/build-push-action@v5
92100
with:
93101
context: .
94-
platforms: linux/amd64,linux/arm64
102+
platforms: linux/amd64,linux/arm64,linux/riscv64
95103
push: true
96-
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}
104+
tags: |-
105+
gitea/gitea:${{ steps.clean_name.outputs.branch }}
106+
ghcr.io/go-gitea/gitea:${{ steps.clean_name.outputs.branch }}
97107
nightly-docker-rootless:
98108
runs-on: namespace-profile-gitea-release-docker
109+
permissions:
110+
packages: write # to publish to ghcr.io
99111
steps:
100112
- uses: actions/checkout@v4
101113
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
@@ -122,6 +134,12 @@ jobs:
122134
with:
123135
username: ${{ secrets.DOCKERHUB_USERNAME }}
124136
password: ${{ secrets.DOCKERHUB_TOKEN }}
137+
- name: Login to GHCR using PAT
138+
uses: docker/login-action@v3
139+
with:
140+
registry: ghcr.io
141+
username: ${{ github.repository_owner }}
142+
password: ${{ secrets.GITHUB_TOKEN }}
125143
- name: fetch go modules
126144
run: make vendor
127145
- name: build rootless docker image
@@ -131,4 +149,6 @@ jobs:
131149
platforms: linux/amd64,linux/arm64
132150
push: true
133151
file: Dockerfile.rootless
134-
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
152+
tags: |-
153+
gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
154+
ghcr.io/go-gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless

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

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
7070
docker-rootful:
7171
runs-on: namespace-profile-gitea-release-docker
72+
permissions:
73+
packages: write # to publish to ghcr.io
7274
steps:
7375
- uses: actions/checkout@v4
7476
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
@@ -79,7 +81,9 @@ jobs:
7981
- uses: docker/metadata-action@v5
8082
id: meta
8183
with:
82-
images: gitea/gitea
84+
images: |-
85+
gitea/gitea
86+
ghcr.io/go-gitea/gitea
8387
flavor: |
8488
latest=false
8589
# 1.2.3-rc0
@@ -90,16 +94,24 @@ jobs:
9094
with:
9195
username: ${{ secrets.DOCKERHUB_USERNAME }}
9296
password: ${{ secrets.DOCKERHUB_TOKEN }}
97+
- name: Login to GHCR using PAT
98+
uses: docker/login-action@v3
99+
with:
100+
registry: ghcr.io
101+
username: ${{ github.repository_owner }}
102+
password: ${{ secrets.GITHUB_TOKEN }}
93103
- name: build rootful docker image
94104
uses: docker/build-push-action@v5
95105
with:
96106
context: .
97-
platforms: linux/amd64,linux/arm64
107+
platforms: linux/amd64,linux/arm64,linux/riscv64
98108
push: true
99109
tags: ${{ steps.meta.outputs.tags }}
100110
labels: ${{ steps.meta.outputs.labels }}
101111
docker-rootless:
102112
runs-on: namespace-profile-gitea-release-docker
113+
permissions:
114+
packages: write # to publish to ghcr.io
103115
steps:
104116
- uses: actions/checkout@v4
105117
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
@@ -110,7 +122,9 @@ jobs:
110122
- uses: docker/metadata-action@v5
111123
id: meta
112124
with:
113-
images: gitea/gitea
125+
images: |-
126+
gitea/gitea
127+
ghcr.io/go-gitea/gitea
114128
# each tag below will have the suffix of -rootless
115129
flavor: |
116130
latest=false
@@ -123,11 +137,17 @@ jobs:
123137
with:
124138
username: ${{ secrets.DOCKERHUB_USERNAME }}
125139
password: ${{ secrets.DOCKERHUB_TOKEN }}
140+
- name: Login to GHCR using PAT
141+
uses: docker/login-action@v3
142+
with:
143+
registry: ghcr.io
144+
username: ${{ github.repository_owner }}
145+
password: ${{ secrets.GITHUB_TOKEN }}
126146
- name: build rootless docker image
127147
uses: docker/build-push-action@v5
128148
with:
129149
context: .
130-
platforms: linux/amd64,linux/arm64
150+
platforms: linux/amd64,linux/arm64,linux/riscv64
131151
push: true
132152
file: Dockerfile.rootless
133153
tags: ${{ steps.meta.outputs.tags }}

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

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ concurrency:
1414
jobs:
1515
binary:
1616
runs-on: namespace-profile-gitea-release-binary
17+
permissions:
18+
packages: write # to publish to ghcr.io
1719
steps:
1820
- uses: actions/checkout@v4
1921
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
@@ -71,6 +73,8 @@ jobs:
7173
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
7274
docker-rootful:
7375
runs-on: namespace-profile-gitea-release-docker
76+
permissions:
77+
packages: write # to publish to ghcr.io
7478
steps:
7579
- uses: actions/checkout@v4
7680
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
@@ -81,26 +85,34 @@ jobs:
8185
- uses: docker/metadata-action@v5
8286
id: meta
8387
with:
84-
images: gitea/gitea
88+
images: |-
89+
gitea/gitea
90+
ghcr.io/go-gitea/gitea
8591
# this will generate tags in the following format:
8692
# latest
8793
# 1
8894
# 1.2
8995
# 1.2.3
9096
tags: |
97+
type=semver,pattern={{version}}
9198
type=semver,pattern={{major}}
9299
type=semver,pattern={{major}}.{{minor}}
93-
type=semver,pattern={{version}}
94100
- name: Login to Docker Hub
95101
uses: docker/login-action@v3
96102
with:
97103
username: ${{ secrets.DOCKERHUB_USERNAME }}
98104
password: ${{ secrets.DOCKERHUB_TOKEN }}
105+
- name: Login to GHCR using PAT
106+
uses: docker/login-action@v3
107+
with:
108+
registry: ghcr.io
109+
username: ${{ github.repository_owner }}
110+
password: ${{ secrets.GITHUB_TOKEN }}
99111
- name: build rootful docker image
100112
uses: docker/build-push-action@v5
101113
with:
102114
context: .
103-
platforms: linux/amd64,linux/arm64
115+
platforms: linux/amd64,linux/arm64,linux/riscv64
104116
push: true
105117
tags: ${{ steps.meta.outputs.tags }}
106118
labels: ${{ steps.meta.outputs.labels }}
@@ -116,7 +128,9 @@ jobs:
116128
- uses: docker/metadata-action@v5
117129
id: meta
118130
with:
119-
images: gitea/gitea
131+
images: |-
132+
gitea/gitea
133+
ghcr.io/go-gitea/gitea
120134
# each tag below will have the suffix of -rootless
121135
flavor: |
122136
suffix=-rootless,onlatest=true
@@ -126,19 +140,25 @@ jobs:
126140
# 1.2
127141
# 1.2.3
128142
tags: |
143+
type=semver,pattern={{version}}
129144
type=semver,pattern={{major}}
130145
type=semver,pattern={{major}}.{{minor}}
131-
type=semver,pattern={{version}}
132146
- name: Login to Docker Hub
133147
uses: docker/login-action@v3
134148
with:
135149
username: ${{ secrets.DOCKERHUB_USERNAME }}
136150
password: ${{ secrets.DOCKERHUB_TOKEN }}
151+
- name: Login to GHCR using PAT
152+
uses: docker/login-action@v3
153+
with:
154+
registry: ghcr.io
155+
username: ${{ github.repository_owner }}
156+
password: ${{ secrets.GITHUB_TOKEN }}
137157
- name: build rootless docker image
138158
uses: docker/build-push-action@v5
139159
with:
140160
context: .
141-
platforms: linux/amd64,linux/arm64
161+
platforms: linux/amd64,linux/arm64,linux/riscv64
142162
push: true
143163
file: Dockerfile.rootless
144164
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)