Skip to content

Commit 8fa87a3

Browse files
authored
Merge branch 'main' into remove-dashboard-home-button
2 parents 96c889c + 167914c commit 8fa87a3

File tree

760 files changed

+19015
-12234
lines changed

Some content is hidden

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

760 files changed

+19015
-12234
lines changed

.drone.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,6 @@ steps:
218218
GITHUB_READ_TOKEN:
219219
from_secret: github_read_token
220220

221-
- name: unit-test-race
222-
image: golang:1.17
223-
commands:
224-
- make test-backend
225-
environment:
226-
GOPROXY: off
227-
TAGS: sqlite sqlite_unlock_notify
228-
RACE_ENABLED: true
229-
GITHUB_READ_TOKEN:
230-
from_secret: github_read_token
231-
232221
- name: unit-test-gogit
233222
pull: always
234223
image: golang:1.17

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/templates/**/*.tmpl linguist-language=Handlebars
55
/.eslintrc linguist-language=YAML
66
/.stylelintrc linguist-language=YAML
7+
/web_src/fomantic/build/** linguist-generated
File renamed without changes.
Lines changed: 89 additions & 0 deletions
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

Lines changed: 17 additions & 0 deletions
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.
Lines changed: 23 additions & 0 deletions
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
Lines changed: 62 additions & 0 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,62 @@ 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+
28+
## [1.15.2](https://github.com/go-gitea/gitea/releases/tag/v1.15.2) - 2021-09-03
29+
30+
* BUGFIXES
31+
* Add unique constraint back into issue_index (#16938)
32+
* Close storage objects before cleaning (#16934) (#16942)
33+
34+
## [1.15.1](https://github.com/go-gitea/gitea/releases/tag/v1.15.1) - 2021-09-02
35+
36+
* BUGFIXES
37+
* Allow BASIC authentication access to /:owner/:repo/releases/download/* (#16916) (#16923)
38+
* Prevent leave changes dialogs due to autofill fields (#16912) (#16920)
39+
* Ignore review comment when ref commit is missed (#16905) (#16919)
40+
* Fix wrong attachment removal (#16915) (#16917)
41+
* Gitlab Migrator: dont ignore reactions of last request (#16903) (#16913)
42+
* Correctly return the number of Repositories for Organizations (#16807) (#16911)
43+
* Test if LFS object is accessible (#16865) (#16904)
44+
* Fix git.Blob.DataAsync(): close pipe since we return a NopCloser (#16899) (#16900)
45+
* Fix dump and restore respository (#16698) (#16898)
46+
* Repare and Improve GetDiffRangeWithWhitespaceBehavior (#16894) (#16895)
47+
* Fix wiki raw commit diff/patch view (#16891) (#16892)
48+
* Ensure wiki repos are all closed (#16886) (#16888)
49+
* List limited and private orgs if authenticated on API (#16866) (#16879)
50+
* Simplify split diff view generation and remove JS dependency (#16775) (#16863)
51+
* Ensure that the default visibility is set on the user create page (#16845) (#16862)
52+
* In Render tolerate not being passed a context (#16842) (#16858)
53+
* Upgrade xorm to v1.2.2 (#16663) & Add test to ensure that dumping of login sources remains correct (#16847) (#16848)
54+
* Report the correct number of pushes on the feeds (#16811) (#16822)
55+
* Add primary_key to issue_index (#16813) (#16820)
56+
* Prevent NPE on empty commit (#16812) (#16819)
57+
* Fix branch pagination error (#16805) (#16816)
58+
* Add missing return to handleSettingRemoteAddrError (#16794) (#16795)
59+
* Remove spurious / from issues.opened_by (#16793)
60+
* Ensure that template compilation panics are sent to the logs (#16788) (#16792)
61+
* Update caddyserver/certmagic (#16789) (#16790)
62+
763
## [1.15.0](https://github.com/go-gitea/gitea/releases/tag/v1.15.0) - 2021-08-21
864

965
* BREAKING
@@ -258,6 +314,15 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
258314
* Remove utf8 option from installation page (#16126)
259315
* Use Wants= over Requires= in systemd file (#15897)
260316

317+
## [1.14.7](https://github.com/go-gitea/gitea/releases/tag/v1.14.7) - 2021-09-02
318+
319+
* BUGFIXES
320+
* Add missing gitRepo close at GetDiffRangeWithWhitespaceBehavior (Partial #16894) (#16896)
321+
* Fix wiki raw commit diff/patch view (#16891) (#16893)
322+
* Ensure wiki repos are all closed (#16886) (#16889)
323+
* Upgrade xorm to v1.2.2 (#16663) & Add test to ensure that dumping of login sources remains correct (#16847) (#16849)
324+
* Recreate Tables should Recreate indexes on MySQL (#16718) (#16740)
325+
261326
## [1.14.6](https://github.com/go-gitea/gitea/releases/tag/v1.14.6) - 2021-08-04
262327

263328
* SECURITY

MAINTAINERS

Lines changed: 1 addition & 0 deletions
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)

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ test\#%:
385385

386386
.PHONY: coverage
387387
coverage:
388-
GO111MODULE=on $(GO) run -mod=vendor build/gocovmerge.go integration.coverage.out coverage.out > coverage.all
388+
grep '^\(mode: .*\)\|\(.*:[0-9]\+\.[0-9]\+,[0-9]\+\.[0-9]\+ [0-9]\+ [0-9]\+\)$$' coverage.out > coverage-bodged.out
389+
grep '^\(mode: .*\)\|\(.*:[0-9]\+\.[0-9]\+,[0-9]\+\.[0-9]\+ [0-9]\+ [0-9]\+\)$$' integration.coverage.out > integration.coverage-bodged.out
390+
GO111MODULE=on $(GO) run -mod=vendor build/gocovmerge.go integration.coverage-bodged.out coverage-bodged.out > coverage.all || (echo "gocovmerge failed"; echo "integration.coverage.out"; cat integration.coverage.out; echo "coverage.out"; cat coverage.out; exit 1)
389391

390392
.PHONY: unit-test-coverage
391393
unit-test-coverage:
@@ -701,6 +703,7 @@ fomantic:
701703
cp -rf $(FOMANTIC_WORK_DIR)/_site $(FOMANTIC_WORK_DIR)/node_modules/fomantic-ui/src/
702704
cp -f web_src/js/vendor/dropdown.js $(FOMANTIC_WORK_DIR)/node_modules/fomantic-ui/src/definitions/modules
703705
cd $(FOMANTIC_WORK_DIR) && npx gulp -f node_modules/fomantic-ui/gulpfile.js build
706+
rm -f $(FOMANTIC_WORK_DIR)/build/*.min.*
704707

705708
.PHONY: webpack
706709
webpack: $(WEBPACK_DEST)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<a href="https://codecov.io/gh/go-gitea/gitea" title="Codecov">
1616
<img src="https://codecov.io/gh/go-gitea/gitea/branch/main/graph/badge.svg">
1717
</a>
18-
<a href="https://godoc.org/code.gitea.io/gitea" title="Go Report Card">
18+
<a href="https://goreportcard.com/report/code.gitea.io/gitea" title="Go Report Card">
1919
<img src="https://goreportcard.com/badge/code.gitea.io/gitea">
2020
</a>
2121
<a href="https://godoc.org/code.gitea.io/gitea" title="GoDoc">

README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<a href="https://codecov.io/gh/go-gitea/gitea" title="Codecov">
1616
<img src="https://codecov.io/gh/go-gitea/gitea/branch/main/graph/badge.svg">
1717
</a>
18-
<a href="https://godoc.org/code.gitea.io/gitea" title="Go Report Card">
18+
<a href="https://goreportcard.com/report/code.gitea.io/gitea" title="Go Report Card">
1919
<img src="https://goreportcard.com/badge/code.gitea.io/gitea">
2020
</a>
2121
<a href="https://godoc.org/code.gitea.io/gitea" title="GoDoc">

build/generate-bindata.go

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