Skip to content

Commit 579a6e1

Browse files
committed
Merge branch 'main' into fix-filter-checkbox-in-dashboard
2 parents 49e8dd3 + 8540fc4 commit 579a6e1

File tree

718 files changed

+9979
-6205
lines changed

Some content is hidden

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

718 files changed

+9979
-6205
lines changed

.drone.yml

+157-6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ trigger:
1212
- push
1313
- tag
1414
- pull_request
15+
paths:
16+
exclude:
17+
- docs/**
1518

1619
volumes:
1720
- name: deps
@@ -112,7 +115,6 @@ steps:
112115
image: golang:1.19 # this step is kept as the lowest version of golang that we support
113116
pull: always
114117
environment:
115-
GO111MODULE: on
116118
GOPROXY: https://goproxy.io
117119
commands:
118120
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
@@ -124,7 +126,6 @@ steps:
124126
- name: build-backend-arm64
125127
image: golang:1.20
126128
environment:
127-
GO111MODULE: on
128129
GOPROXY: https://goproxy.io
129130
GOOS: linux
130131
GOARCH: arm64
@@ -140,7 +141,6 @@ steps:
140141
- name: build-backend-windows
141142
image: golang:1.20
142143
environment:
143-
GO111MODULE: on
144144
GOPROXY: https://goproxy.io
145145
GOOS: windows
146146
GOARCH: amd64
@@ -155,7 +155,6 @@ steps:
155155
- name: build-backend-386
156156
image: golang:1.20
157157
environment:
158-
GO111MODULE: on
159158
GOPROXY: https://goproxy.io
160159
GOOS: linux
161160
GOARCH: 386
@@ -183,6 +182,9 @@ trigger:
183182
- push
184183
- tag
185184
- pull_request
185+
paths:
186+
exclude:
187+
- docs/**
186188

187189
volumes:
188190
- name: deps
@@ -410,6 +412,9 @@ trigger:
410412
- push
411413
- tag
412414
- pull_request
415+
paths:
416+
exclude:
417+
- docs/**
413418

414419
volumes:
415420
- name: deps
@@ -517,6 +522,9 @@ depends_on:
517522
trigger:
518523
event:
519524
- pull_request
525+
paths:
526+
exclude:
527+
- docs/**
520528

521529
volumes:
522530
- name: deps
@@ -696,6 +704,9 @@ trigger:
696704
- "release/*"
697705
event:
698706
- push
707+
paths:
708+
exclude:
709+
- docs/**
699710

700711
depends_on:
701712
- testing-amd64
@@ -947,6 +958,9 @@ trigger:
947958
- push
948959
- tag
949960
- pull_request
961+
paths:
962+
include:
963+
- docs/**
950964

951965
steps:
952966
- name: build-docs
@@ -985,7 +999,10 @@ depends_on:
985999

9861000
trigger:
9871001
ref:
988-
- "refs/tags/**"
1002+
include:
1003+
- "refs/tags/**"
1004+
exclude:
1005+
- "refs/tags/**-rc*"
9891006
event:
9901007
exclude:
9911008
- cron
@@ -1033,6 +1050,68 @@ steps:
10331050
event:
10341051
exclude:
10351052
- pull_request
1053+
---
1054+
1055+
kind: pipeline
1056+
type: docker
1057+
name: docker-linux-amd64-release-candidate-version
1058+
1059+
platform:
1060+
os: linux
1061+
arch: amd64
1062+
1063+
depends_on:
1064+
- testing-amd64
1065+
- testing-arm64
1066+
1067+
trigger:
1068+
ref:
1069+
- "refs/tags/**-rc*"
1070+
event:
1071+
exclude:
1072+
- cron
1073+
1074+
steps:
1075+
- name: fetch-tags
1076+
image: docker:git
1077+
pull: always
1078+
commands:
1079+
- git config --global --add safe.directory /drone/src
1080+
- git fetch --tags --force
1081+
1082+
- name: publish
1083+
image: techknowlogick/drone-docker:latest
1084+
pull: always
1085+
settings:
1086+
tags: ${DRONE_TAG##v}-linux-amd64
1087+
repo: gitea/gitea
1088+
build_args:
1089+
- GOPROXY=https://goproxy.io
1090+
password:
1091+
from_secret: docker_password
1092+
username:
1093+
from_secret: docker_username
1094+
when:
1095+
event:
1096+
exclude:
1097+
- pull_request
1098+
1099+
- name: publish-rootless
1100+
image: techknowlogick/drone-docker:latest
1101+
settings:
1102+
dockerfile: Dockerfile.rootless
1103+
tags: ${DRONE_TAG##v}-linux-amd64-rootless
1104+
repo: gitea/gitea
1105+
build_args:
1106+
- GOPROXY=https://goproxy.io
1107+
password:
1108+
from_secret: docker_password
1109+
username:
1110+
from_secret: docker_username
1111+
when:
1112+
event:
1113+
exclude:
1114+
- pull_request
10361115

10371116
---
10381117
kind: pipeline
@@ -1176,6 +1255,9 @@ depends_on:
11761255
trigger:
11771256
ref:
11781257
- "refs/pull/**"
1258+
paths:
1259+
exclude:
1260+
- docs/**
11791261

11801262
steps:
11811263
- name: dryrun
@@ -1209,7 +1291,10 @@ depends_on:
12091291

12101292
trigger:
12111293
ref:
1212-
- "refs/tags/**"
1294+
include:
1295+
- "refs/tags/**"
1296+
exclude:
1297+
- "refs/tags/**-rc*"
12131298
event:
12141299
exclude:
12151300
- cron
@@ -1258,6 +1343,68 @@ steps:
12581343
exclude:
12591344
- pull_request
12601345

1346+
---
1347+
kind: pipeline
1348+
type: docker
1349+
name: docker-linux-arm64-release-candidate-version
1350+
1351+
platform:
1352+
os: linux
1353+
arch: arm64
1354+
1355+
depends_on:
1356+
- testing-amd64
1357+
- testing-arm64
1358+
1359+
trigger:
1360+
ref:
1361+
- "refs/tags/**-rc*"
1362+
event:
1363+
exclude:
1364+
- cron
1365+
1366+
steps:
1367+
- name: fetch-tags
1368+
image: docker:git
1369+
pull: always
1370+
commands:
1371+
- git config --global --add safe.directory /drone/src
1372+
- git fetch --tags --force
1373+
1374+
- name: publish
1375+
image: techknowlogick/drone-docker:latest
1376+
pull: always
1377+
settings:
1378+
tags: ${DRONE_TAG##v}-linux-arm64
1379+
repo: gitea/gitea
1380+
build_args:
1381+
- GOPROXY=https://goproxy.io
1382+
password:
1383+
from_secret: docker_password
1384+
username:
1385+
from_secret: docker_username
1386+
when:
1387+
event:
1388+
exclude:
1389+
- pull_request
1390+
1391+
- name: publish-rootless
1392+
image: techknowlogick/drone-docker:latest
1393+
settings:
1394+
dockerfile: Dockerfile.rootless
1395+
tags: ${DRONE_TAG##v}-linux-arm64-rootless
1396+
repo: gitea/gitea
1397+
build_args:
1398+
- GOPROXY=https://goproxy.io
1399+
password:
1400+
from_secret: docker_password
1401+
username:
1402+
from_secret: docker_username
1403+
when:
1404+
event:
1405+
exclude:
1406+
- pull_request
1407+
12611408
---
12621409
kind: pipeline
12631410
type: docker
@@ -1427,7 +1574,9 @@ trigger:
14271574

14281575
depends_on:
14291576
- docker-linux-amd64-release-version
1577+
- docker-linux-amd64-release-candidate-version
14301578
- docker-linux-arm64-release-version
1579+
- docker-linux-arm64-release-candidate-version
14311580

14321581
---
14331582
kind: pipeline
@@ -1509,6 +1658,8 @@ depends_on:
15091658
- docker-linux-arm64-release
15101659
- docker-linux-amd64-release-version
15111660
- docker-linux-arm64-release-version
1661+
- docker-linux-amd64-release-candidate-version
1662+
- docker-linux-arm64-release-candidate-version
15121663
- docker-linux-amd64-release-branch
15131664
- docker-linux-arm64-release-branch
15141665
- docker-manifest

.eslintrc.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ rules:
149149
jquery/no-global-eval: [2]
150150
jquery/no-grep: [2]
151151
jquery/no-has: [2]
152-
jquery/no-hide: [0]
152+
jquery/no-hide: [2]
153153
jquery/no-html: [0]
154154
jquery/no-in-array: [2]
155155
jquery/no-is-array: [2]
@@ -166,13 +166,13 @@ rules:
166166
jquery/no-proxy: [2]
167167
jquery/no-ready: [0]
168168
jquery/no-serialize: [2]
169-
jquery/no-show: [0]
169+
jquery/no-show: [2]
170170
jquery/no-size: [2]
171171
jquery/no-sizzle: [0]
172172
jquery/no-slide: [0]
173173
jquery/no-submit: [0]
174174
jquery/no-text: [0]
175-
jquery/no-toggle: [0]
175+
jquery/no-toggle: [2]
176176
jquery/no-trigger: [0]
177177
jquery/no-trim: [2]
178178
jquery/no-val: [0]

.github/pull_request_template.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!--
2-
1+
<!-- start tips -->
32
Please check the following:
4-
5-
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for bug fixes.
6-
2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md
7-
3. Describe what your pull request does and which issue you're targeting (if any)
8-
9-
-->
3+
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports.
4+
2. Make sure you have read contributing guidelines: https://github.com/go-gitea/gitea/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.
9+
<!-- end tips -->

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ linters:
2828
fast: false
2929

3030
run:
31-
go: 1.20
31+
go: "1.20"
3232
timeout: 10m
3333
skip-dirs:
3434
- node_modules

0 commit comments

Comments
 (0)