Skip to content

Commit a39fd9f

Browse files
Merge branch 'main' into saml
2 parents 326b20c + 177cea7 commit a39fd9f

File tree

817 files changed

+5725
-4744
lines changed

Some content is hidden

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

817 files changed

+5725
-4744
lines changed

.eslintrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ rules:
128128
"@stylistic/js/computed-property-spacing": [2, never]
129129
"@stylistic/js/dot-location": [2, property]
130130
"@stylistic/js/eol-last": [2]
131-
"@stylistic/js/func-call-spacing": [2, never]
131+
"@stylistic/js/function-call-spacing": [2, never]
132132
"@stylistic/js/function-call-argument-newline": [0]
133133
"@stylistic/js/function-paren-newline": [0]
134134
"@stylistic/js/generator-star-spacing": [0]

.github/stale.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/cron-licenses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
if: github.repository == 'go-gitea/gitea'
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: actions/setup-go@v4
14+
- uses: actions/setup-go@v5
1515
with:
1616
go-version-file: go.mod
1717
check-latest: true

.github/workflows/cron-lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: github.repository == 'go-gitea/gitea'
1919
steps:
20-
- uses: dessant/lock-threads@v4
20+
- uses: dessant/lock-threads@v5
2121
with:
2222
issue-inactive-days: 45

.github/workflows/disk-clean.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,6 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11-
# FIXME: https://github.com/jlumbroso/free-disk-space/issues/17
12-
- name: same as 'large-packages' but without 'google-cloud-sdk'
13-
shell: bash
14-
run: |
15-
sudo apt-get update
16-
sudo apt-get remove -y '^dotnet-.*' || true
17-
sudo apt-get remove -y '^llvm-.*' || true
18-
sudo apt-get remove -y 'php.*' || true
19-
sudo apt-get remove -y '^mongodb-.*' || true
20-
sudo apt-get remove -y '^mysql-.*' || true
21-
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri || true
22-
sudo apt-get autoremove -y
23-
sudo apt-get clean
24-
env:
25-
DEBIAN_FRONTEND: noninteractive
2611
- name: Free Disk Space (Ubuntu)
2712
uses: jlumbroso/free-disk-space@main
2813
with:

.github/workflows/pull-compliance.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true
@@ -70,7 +70,7 @@ jobs:
7070
runs-on: ubuntu-latest
7171
steps:
7272
- uses: actions/checkout@v4
73-
- uses: actions/setup-go@v4
73+
- uses: actions/setup-go@v5
7474
with:
7575
go-version-file: go.mod
7676
check-latest: true
@@ -87,7 +87,7 @@ jobs:
8787
runs-on: ubuntu-latest
8888
steps:
8989
- uses: actions/checkout@v4
90-
- uses: actions/setup-go@v4
90+
- uses: actions/setup-go@v5
9191
with:
9292
go-version-file: go.mod
9393
check-latest: true
@@ -102,7 +102,7 @@ jobs:
102102
runs-on: ubuntu-latest
103103
steps:
104104
- uses: actions/checkout@v4
105-
- uses: actions/setup-go@v4
105+
- uses: actions/setup-go@v5
106106
with:
107107
go-version-file: go.mod
108108
check-latest: true
@@ -130,7 +130,7 @@ jobs:
130130
runs-on: ubuntu-latest
131131
steps:
132132
- uses: actions/checkout@v4
133-
- uses: actions/setup-go@v4
133+
- uses: actions/setup-go@v5
134134
with:
135135
go-version-file: go.mod
136136
check-latest: true
@@ -175,7 +175,7 @@ jobs:
175175
runs-on: ubuntu-latest
176176
steps:
177177
- uses: actions/checkout@v4
178-
- uses: actions/setup-go@v4
178+
- uses: actions/setup-go@v5
179179
with:
180180
go-version-file: go.mod
181181
check-latest: true

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE: http://localhost:3002/user/saml/test-sp/acs
4848
steps:
4949
- uses: actions/checkout@v4
50-
- uses: actions/setup-go@v4
50+
- uses: actions/setup-go@v5
5151
with:
5252
go-version-file: go.mod
5353
check-latest: true
@@ -72,7 +72,7 @@ jobs:
7272
runs-on: ubuntu-latest
7373
steps:
7474
- uses: actions/checkout@v4
75-
- uses: actions/setup-go@v4
75+
- uses: actions/setup-go@v5
7676
with:
7777
go-version-file: go.mod
7878
check-latest: true
@@ -123,7 +123,7 @@ jobs:
123123
- "9000:9000"
124124
steps:
125125
- uses: actions/checkout@v4
126-
- uses: actions/setup-go@v4
126+
- uses: actions/setup-go@v5
127127
with:
128128
go-version-file: go.mod
129129
check-latest: true
@@ -173,7 +173,7 @@ jobs:
173173
- "993:993"
174174
steps:
175175
- uses: actions/checkout@v4
176-
- uses: actions/setup-go@v4
176+
- uses: actions/setup-go@v5
177177
with:
178178
go-version-file: go.mod
179179
check-latest: true
@@ -206,7 +206,7 @@ jobs:
206206
- "1433:1433"
207207
steps:
208208
- uses: actions/checkout@v4
209-
- uses: actions/setup-go@v4
209+
- uses: actions/setup-go@v5
210210
with:
211211
go-version-file: go.mod
212212
check-latest: true

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true

.github/workflows/release-nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
1919
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
2020
- run: git fetch --unshallow --quiet --tags --force
21-
- uses: actions/setup-go@v4
21+
- uses: actions/setup-go@v5
2222
with:
2323
go-version-file: go.mod
2424
check-latest: true
@@ -64,7 +64,7 @@ jobs:
6464
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
6565
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
6666
- run: git fetch --unshallow --quiet --tags --force
67-
- uses: actions/setup-go@v4
67+
- uses: actions/setup-go@v5
6868
with:
6969
go-version-file: go.mod
7070
check-latest: true
@@ -101,7 +101,7 @@ jobs:
101101
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
102102
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
103103
- run: git fetch --unshallow --quiet --tags --force
104-
- uses: actions/setup-go@v4
104+
- uses: actions/setup-go@v5
105105
with:
106106
go-version-file: go.mod
107107
check-latest: true

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
1818
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
1919
- run: git fetch --unshallow --quiet --tags --force
20-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true
@@ -44,7 +44,7 @@ jobs:
4444
- name: Get cleaned branch name
4545
id: clean_name
4646
run: |
47-
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
47+
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\/v//' -e 's/release\/v//')
4848
echo "Cleaned name is ${REF_NAME}"
4949
echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT"
5050
- name: configure aws
@@ -56,6 +56,10 @@ jobs:
5656
- name: upload binaries to s3
5757
run: |
5858
aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
59+
- name: Install GH CLI
60+
uses: dev-hanz-ops/[email protected]
61+
with:
62+
gh-cli-version: 2.39.1
5963
- name: create github release
6064
run: |
6165
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --draft --notes-from-tag dist/release/*
@@ -74,6 +78,8 @@ jobs:
7478
id: meta
7579
with:
7680
images: gitea/gitea
81+
flavor: |
82+
latest=false
7783
# 1.2.3-rc0
7884
tags: |
7985
type=semver,pattern={{version}}
@@ -105,6 +111,7 @@ jobs:
105111
images: gitea/gitea
106112
# each tag below will have the suffix of -rootless
107113
flavor: |
114+
latest=false
108115
suffix=-rootless
109116
# 1.2.3-rc0
110117
tags: |

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
2020
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
2121
- run: git fetch --unshallow --quiet --tags --force
22-
- uses: actions/setup-go@v4
22+
- uses: actions/setup-go@v5
2323
with:
2424
go-version-file: go.mod
2525
check-latest: true
@@ -46,7 +46,7 @@ jobs:
4646
- name: Get cleaned branch name
4747
id: clean_name
4848
run: |
49-
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
49+
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\/v//' -e 's/release\/v//')
5050
echo "Cleaned name is ${REF_NAME}"
5151
echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT"
5252
- name: configure aws
@@ -58,9 +58,13 @@ jobs:
5858
- name: upload binaries to s3
5959
run: |
6060
aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
61+
- name: Install GH CLI
62+
uses: dev-hanz-ops/[email protected]
63+
with:
64+
gh-cli-version: 2.39.1
6165
- name: create github release
6266
run: |
63-
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --draft --notes-from-tag dist/release/*
67+
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --notes-from-tag dist/release/*
6468
env:
6569
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
6670
docker-rootful:
@@ -82,7 +86,6 @@ jobs:
8286
# 1.2
8387
# 1.2.3
8488
tags: |
85-
type=raw,value=latest
8689
type=semver,pattern={{major}}
8790
type=semver,pattern={{major}}.{{minor}}
8891
type=semver,pattern={{version}}
@@ -114,14 +117,13 @@ jobs:
114117
images: gitea/gitea
115118
# each tag below will have the suffix of -rootless
116119
flavor: |
117-
suffix=-rootless
120+
suffix=-rootless,onlatest=true
118121
# this will generate tags in the following format (with -rootless suffix added):
119122
# latest
120123
# 1
121124
# 1.2
122125
# 1.2.3
123126
tags: |
124-
type=raw,value=latest
125127
type=semver,pattern={{major}}
126128
type=semver,pattern={{major}}.{{minor}}
127129
type=semver,pattern={{version}}

0 commit comments

Comments
 (0)