Skip to content

Commit ce4f8f0

Browse files
committed
Merge remote-tracking branch 'origin/main' into try-remote-prune-in-mirror-sync
2 parents 2da63a4 + 56d7930 commit ce4f8f0

File tree

712 files changed

+12637
-7927
lines changed

Some content is hidden

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

712 files changed

+12637
-7927
lines changed

.drone.yml

+24-6
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,14 @@ steps:
207207
commands:
208208
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
209209

210+
- name: fix-permissions
211+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
212+
commands:
213+
- chown -R gitea:gitea .
214+
210215
- name: unit-test
211-
image: golang:1.17
216+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
217+
user: gitea
212218
commands:
213219
- make unit-test-coverage test-check
214220
environment:
@@ -220,7 +226,8 @@ steps:
220226

221227
- name: unit-test-gogit
222228
pull: always
223-
image: golang:1.17
229+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
230+
user: gitea
224231
commands:
225232
- make unit-test-coverage test-check
226233
environment:
@@ -232,6 +239,7 @@ steps:
232239

233240
- name: test-mysql
234241
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
242+
user: gitea
235243
commands:
236244
- make test-mysql-migration integration-test-coverage
237245
environment:
@@ -246,6 +254,7 @@ steps:
246254

247255
- name: test-mysql8
248256
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
257+
user: gitea
249258
commands:
250259
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8
251260
environment:
@@ -259,6 +268,7 @@ steps:
259268

260269
- name: test-mssql
261270
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
271+
user: gitea
262272
commands:
263273
- make test-mssql-migration test-mssql
264274
environment:
@@ -343,9 +353,15 @@ steps:
343353
exclude:
344354
- pull_request
345355

356+
- name: fix-permissions
357+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
358+
commands:
359+
- chown -R gitea:gitea .
360+
346361
- name: build
347362
pull: always
348-
image: golang:1.17
363+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
364+
user: gitea
349365
commands:
350366
- make backend
351367
environment:
@@ -355,6 +371,7 @@ steps:
355371

356372
- name: test-sqlite
357373
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
374+
user: gitea
358375
commands:
359376
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
360377
environment:
@@ -368,6 +385,7 @@ steps:
368385

369386
- name: test-pgsql
370387
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
388+
user: gitea
371389
commands:
372390
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql
373391
environment:
@@ -534,7 +552,7 @@ steps:
534552

535553
- name: release-branch
536554
pull: always
537-
image: plugins/s3:1
555+
image: woodpeckerci/plugin-s3:latest
538556
settings:
539557
acl: public-read
540558
bucket: gitea-artifacts
@@ -555,7 +573,7 @@ steps:
555573
- push
556574

557575
- name: release-main
558-
image: plugins/s3:1
576+
image: woodpeckerci/plugin-s3:latest
559577
settings:
560578
acl: public-read
561579
bucket: gitea-artifacts
@@ -630,7 +648,7 @@ steps:
630648

631649
- name: release-tag
632650
pull: always
633-
image: plugins/s3:1
651+
image: woodpeckerci/plugin-s3:latest
634652
settings:
635653
acl: public-read
636654
bucket: gitea-artifacts
File renamed without changes.
+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Bug Report
2+
description: Found something you weren't expecting? Report it here!
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
NOTE: If your issue is a security concern, please send an email to [email protected] instead of opening a public issue.
8+
- type: markdown
9+
attributes:
10+
value: |
11+
1. Please speak English, this is the language all maintainers can speak and write.
12+
2. Please ask questions or configuration/deploy problems on our Discord
13+
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
14+
3. Please take a moment to check that your issue doesn't already exist.
15+
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
16+
5. Please give all relevant information below for bug reports, because
17+
incomplete details will be handled as an invalid report.
18+
- type: input
19+
id: gitea-ver
20+
attributes:
21+
label: Gitea Version
22+
description: Gitea version (or commit reference) your instance is running
23+
validations:
24+
required: true
25+
- type: input
26+
id: git-ver
27+
attributes:
28+
label: Git Version
29+
description: The version of git running on the server
30+
- type: input
31+
id: os-ver
32+
attributes:
33+
label: Operating System
34+
description: The operating system you are using to run Gitea
35+
- type: textarea
36+
id: run-info
37+
attributes:
38+
label: How are you running Gitea?
39+
description: |
40+
Please include information on whether you built gitea yourself, used one of our downloads, are using https://try.gitea.io or are using some other package
41+
Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc.
42+
If you are using a package or systemd tell us what distribution you are using
43+
validations:
44+
required: true
45+
- type: dropdown
46+
id: database
47+
attributes:
48+
label: Database
49+
description: What database system are you running?
50+
options:
51+
- PostgreSQL
52+
- MySQL
53+
- MSSQL
54+
- SQLite
55+
- type: dropdown
56+
id: can-reproduce
57+
attributes:
58+
label: Can you reproduce the bug on the Gitea demo site?
59+
description: |
60+
If so, please provide a URL in the Description field
61+
URL of Gitea demo: https://try.gitea.io
62+
options:
63+
- "Yes"
64+
- "No"
65+
validations:
66+
required: true
67+
- type: markdown
68+
attributes:
69+
value: |
70+
It really is important to provide pertinent logs
71+
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
72+
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
73+
- type: input
74+
id: logs
75+
attributes:
76+
label: Log Gist
77+
description: Please provide a gist URL of your logs, with any sensitive information (e.g. API keys) removed/hidden
78+
- type: textarea
79+
id: description
80+
attributes:
81+
label: Description
82+
description: |
83+
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see above)
84+
If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services.
85+
- type: textarea
86+
id: screenshots
87+
attributes:
88+
label: Screenshots
89+
description: If this issue involves the Web Interface, please provide a screenshot or multiple screenshots

.github/ISSUE_TEMPLATE/config.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Security Concern
4+
url: https://tinyurl.com/security-gitea
5+
about: For security concerns, please send a mail to [email protected] instead of opening a public issue.
6+
- name: Discord Server
7+
url: https://discord.gg/gitea
8+
about: Please ask questions and discuss configuration or deployment problems here.
9+
- name: Discourse Forum
10+
url: https://discourse.gitea.io
11+
about: Questions and configuration or deployment problems can also be discussed on our forum.
12+
- name: Frequently Asked Questions
13+
url: https://docs.gitea.io/en-us/faq
14+
about: Please check if your question isn't mentioned here.
15+
- name: Crowdin Translations
16+
url: https://crowdin.com/project/gitea
17+
about: Translations are managed here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Feature Request
2+
description: Got an idea for a feature that Gitea doesn't have currently? Submit your idea here!
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
1. Please speak English, this is the language all maintainers can speak and write.
8+
2. Please ask questions or configuration/deploy problems on our Discord
9+
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
10+
3. Please take a moment to check that your feature hasn't already been suggested.
11+
- type: textarea
12+
id: description
13+
attributes:
14+
label: Feature Description
15+
placeholder: |
16+
I think it would be great if Gitea had...
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: screenshots
21+
attributes:
22+
label: Screenshots
23+
description: If you can, provide screenshots of an implementation on another site e.g. GitHub
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Web Interface Bug Report
2+
description: Something doesn't look quite as it should? Report it here!
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
NOTE: If your issue is a security concern, please send an email to [email protected] instead of opening a public issue.
8+
- type: markdown
9+
attributes:
10+
value: |
11+
1. Please speak English, this is the language all maintainers can speak and write.
12+
2. Please ask questions or configuration/deploy problems on our Discord
13+
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
14+
3. Please take a moment to check that your issue doesn't already exist.
15+
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
16+
5. Please give all relevant information below for bug reports, because
17+
incomplete details will be handled as an invalid report.
18+
- type: input
19+
id: gitea-ver
20+
attributes:
21+
label: Gitea Version
22+
description: Gitea version (or commit reference) your instance is running
23+
validations:
24+
required: true
25+
- type: input
26+
id: os-ver
27+
attributes:
28+
label: Operating System
29+
description: The operating system you are using to access Gitea
30+
- type: input
31+
id: browser-ver
32+
attributes:
33+
label: Browser Version
34+
description: The browser and version that you are using to access Gitea
35+
validations:
36+
required: true
37+
- type: dropdown
38+
id: can-reproduce
39+
attributes:
40+
label: Can you reproduce the bug on the Gitea demo site?
41+
description: |
42+
If so, please provide a URL in the Description field
43+
URL of Gitea demo: https://try.gitea.io
44+
options:
45+
- "Yes"
46+
- "No"
47+
validations:
48+
required: true
49+
- type: textarea
50+
id: description
51+
attributes:
52+
label: Description
53+
description: |
54+
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see above)
55+
If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services.
56+
- type: textarea
57+
id: screenshots
58+
attributes:
59+
label: Screenshots
60+
description: Please provide at least 1 screenshot showing the issue.
61+
validations:
62+
required: true

.golangci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,3 @@ issues:
111111
linters:
112112
- staticcheck
113113
text: "svc.IsAnInteractiveSession is deprecated: Use IsWindowsService instead."
114-

.stylelintrc

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ rules:
1313
rule-empty-line-before: null
1414
selector-pseudo-element-colon-notation: double
1515
shorthand-property-no-redundant-values: true
16+
no-invalid-position-at-import-rule: null

CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@ 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.io).
66

7+
## [1.15.3](https://github.com/go-gitea/gitea/releases/tag/v1.15.3) - 2021-09-19
8+
9+
* ENHANCEMENTS
10+
* Add fluid to ui container class to remove margin (#16396) (#16976)
11+
* Add caller to cat-file batch calls (#17082) (#17089)
12+
* BUGFIXES
13+
* Render full plain readme. (#17083) (#17090)
14+
* Upgrade xorm to v1.2.4 (#17059)
15+
* Fix bug of migrate comments which only fetch one page (#17055) (#17058)
16+
* Do not show issue context popup on external issues (#17050) (#17054)
17+
* Decrement Fork Num when converting from Fork (#17035) (#17046)
18+
* Correctly rollback in ForkRepository (#17034) (#17045)
19+
* Fix missing close in WalkGitLog (#17008) (#17009)
20+
* Add prefix to SVG id/class attributes (#16997) (#17000)
21+
* Fix bug of migrated repository not index (#16991) (#16996)
22+
* Skip AllowedUserVisibilityModes validation on update user if it is an organisation (#16988) (#16990)
23+
* Fix storage Iterate bug and Add storage doctor to delete garbage attachments (#16971) (#16977)
24+
* Fix issue with issue default mail template (#16956) (#16975)
25+
* Ensure that rebase conflicts are handled in updates (#16952) (#16960)
26+
* Prevent panic on diff generation (#16950) (#16951)
27+
728
## [1.15.2](https://github.com/go-gitea/gitea/releases/tag/v1.15.2) - 2021-09-03
829

930
* BUGFIXES

MAINTAINERS

+1
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ Patrick Schratz <[email protected]> (@pat-s)
4444
Janis Estelmann <[email protected]> (@KN4CK3R)
4545
Steven Kriegler <[email protected]> (@justusbunsi)
4646
Jimmy Praet <[email protected]> (@jpraet)
47+
Leon Hofmeister <[email protected]> (@delvh)

build/generate-bindata.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"bytes"
1212
"crypto/sha1"
1313
"fmt"
14-
"io/ioutil"
1514
"log"
1615
"net/http"
1716
"os"
@@ -28,7 +27,7 @@ func needsUpdate(dir string, filename string) (bool, []byte) {
2827
needRegen = true
2928
}
3029

31-
oldHash, err := ioutil.ReadFile(filename + ".hash")
30+
oldHash, err := os.ReadFile(filename + ".hash")
3231
if err != nil {
3332
oldHash = []byte{}
3433
}
@@ -83,5 +82,5 @@ func main() {
8382
if err != nil {
8483
log.Fatalf("%v\n", err)
8584
}
86-
_ = ioutil.WriteFile(filename+".hash", newHash, 0666)
85+
_ = os.WriteFile(filename+".hash", newHash, 0666)
8786
}

0 commit comments

Comments
 (0)