Skip to content

Commit 9e37bb8

Browse files
committed
Merge remote-tracking branch 'origin/main' into open-repository-open-cat-file-batch
2 parents 74c2d26 + a2df265 commit 9e37bb8

File tree

241 files changed

+1433
-15591
lines changed

Some content is hidden

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

241 files changed

+1433
-15591
lines changed

.drone.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ steps:
277277
- test-mysql
278278
when:
279279
branch:
280-
- master
280+
- main
281281
event:
282282
- push
283283
- pull_request
@@ -294,7 +294,7 @@ steps:
294294
- generate-coverage
295295
when:
296296
branch:
297-
- master
297+
- main
298298
event:
299299
- push
300300
- pull_request
@@ -383,7 +383,7 @@ platform:
383383

384384
trigger:
385385
branch:
386-
- master
386+
- main
387387
event:
388388
- cron
389389
cron:
@@ -443,7 +443,7 @@ platform:
443443

444444
trigger:
445445
branch:
446-
- master
446+
- main
447447
event:
448448
- cron
449449
cron:
@@ -482,7 +482,7 @@ workspace:
482482

483483
trigger:
484484
branch:
485-
- master
485+
- main
486486
- "release/*"
487487
event:
488488
- push
@@ -545,7 +545,7 @@ steps:
545545
event:
546546
- push
547547

548-
- name: release-master
548+
- name: release-main
549549
image: plugins/s3:1
550550
settings:
551551
acl: public-read
@@ -554,15 +554,15 @@ steps:
554554
path_style: true
555555
source: "dist/release/*"
556556
strip_prefix: dist/release/
557-
target: /gitea/master
557+
target: /gitea/main
558558
environment:
559559
AWS_ACCESS_KEY_ID:
560560
from_secret: aws_access_key_id
561561
AWS_SECRET_ACCESS_KEY:
562562
from_secret: aws_secret_access_key
563563
when:
564564
branch:
565-
- master
565+
- main
566566
event:
567567
- push
568568

@@ -683,7 +683,7 @@ steps:
683683
from_secret: netlify_token
684684
when:
685685
branch:
686-
- master
686+
- main
687687
event:
688688
- push
689689

@@ -701,7 +701,7 @@ depends_on:
701701

702702
trigger:
703703
ref:
704-
- refs/heads/master
704+
- refs/heads/main
705705
- "refs/tags/**"
706706
event:
707707
exclude:
@@ -798,7 +798,7 @@ depends_on:
798798

799799
trigger:
800800
ref:
801-
- refs/heads/master
801+
- refs/heads/main
802802
- "refs/tags/**"
803803
event:
804804
exclude:
@@ -886,7 +886,7 @@ steps:
886886

887887
trigger:
888888
ref:
889-
- refs/heads/master
889+
- refs/heads/main
890890
- "refs/tags/**"
891891
event:
892892
exclude:
@@ -909,7 +909,7 @@ clone:
909909

910910
trigger:
911911
branch:
912-
- master
912+
- main
913913
- "release/*"
914914
event:
915915
- push

.golangci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ issues:
110110
- text: "exitAfterDefer:"
111111
linters:
112112
- gocritic
113+
- path: modules/graceful/manager_windows.go
114+
linters:
115+
- staticcheck
116+
text: "svc.IsAnInteractiveSession is deprecated: Use IsWindowsService instead."

CHANGELOG.md

+50
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,56 @@ 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.14.2](https://github.com/go-gitea/gitea/releases/tag/v1.14.2) - 2021-05-09
8+
9+
* API
10+
* Make change repo settings work on empty repos (#15778) (#15789)
11+
* Add pull "merged" notification subject status to API (#15344) (#15654)
12+
* BUGFIXES
13+
* Ensure that ctx.Written is checked after issues(...) calls (#15797) (#15798)
14+
* Use pulls in commit graph unless pulls are disabled (#15734 & #15740 & #15774) (#15775)
15+
* Set GIT_DIR correctly if it is not set (#15751) (#15769)
16+
* Fix bug where repositories appear unadopted (#15757) (#15767)
17+
* Not show `ref-in-new-issue` pop when issue was disabled (#15761) (#15765)
18+
* Drop back to use IsAnInteractiveSession for SVC (#15749) (#15762)
19+
* Fix setting version table in dump (#15753) (#15759)
20+
* Fix close button change on delete in simplemde area (#15737) (#15747)
21+
* Defer closing the gitrepo until the end of the wrapped context functions (#15653) (#15746)
22+
* Fix some ui bug about draft release (#15137) (#15745)
23+
* Only log Error on getLastCommitStatus error to let pull list still be visible (#15716) (#15715)
24+
* Move tooltip down to allow selection of Remove File on error (#15672) (#15714)
25+
* Fix setting redis db path (#15698) (#15708)
26+
* Fix DB session cleanup (#15697) (#15700)
27+
* Fixed several activation bugs (#15473) (#15685)
28+
* Delete references if repository gets deleted (#15681) (#15684)
29+
* Fix orphaned objects deletion bug (#15657) (#15683)
30+
* Delete protected branch if repository gets removed (#15658) (#15676)
31+
* Remove spurious set name from eventsource.sharedworker.js (#15643) (#15652)
32+
* Not update updated uinx for `git gc` (#15637) (#15641)
33+
* Fix commit graph author link (#15627) (#15630)
34+
* Fix webhook timeout bug (#15613) (#15621)
35+
* Resolve panic on failed interface conversion in migration v156 (#15604) (#15610)
36+
* Fix missing storage init (#15589) (#15598)
37+
* If the default branch is not present do not report error on stats indexing (#15546 & #15583) (#15594)
38+
* Fix lfs management find (#15537) (#15578)
39+
* Fix NPE on view commit with notes (#15561) (#15573)
40+
* Fix bug on commit graph (#15517) (#15530)
41+
* Send size to /avatars if requested (#15459) (#15528)
42+
* Prevent migration 156 failure if tag commit missing (#15519) (#15527)
43+
* ENHANCEMENTS
44+
* Display conflict-free merge messages for pull requests (#15773) (#15796)
45+
* Exponential Backoff for ByteFIFO (#15724) (#15793)
46+
* Issue list alignment tweaks (#15483) (#15766)
47+
* Implement delete release attachments and update release attachments' name (#14130) (#15666)
48+
* Add placeholder text to deploy key textarea (#15575) (#15576)
49+
* Project board improvements (#15429) (#15560)
50+
* Repo branch page: label size, PR ref, new PR button alignment (#15363) (#15365)
51+
* MISC
52+
* Fix webkit calendar icon color on arc-green (#15713) (#15728)
53+
* Performance improvement for last commit cache and show-ref (#15455) (#15701)
54+
* Bump unrolled/render to v1.1.0 (#15581) (#15608)
55+
* Add ETag header (#15370) (#15552)
56+
757
## [1.14.1](https://github.com/go-gitea/gitea/releases/tag/v1.14.1) - 2021-04-15
858

959
* BUGFIXES

Makefile

+6-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ else
7474
ifneq ($(DRONE_BRANCH),)
7575
VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
7676
else
77-
VERSION ?= master
77+
VERSION ?= main
7878
endif
7979

8080
STORED_VERSION=$(shell cat $(STORED_VERSION_FILE) 2>/dev/null)
@@ -219,7 +219,7 @@ node-check:
219219

220220
.PHONY: clean-all
221221
clean-all: clean
222-
rm -rf $(WEBPACK_DEST_ENTRIES)
222+
rm -rf $(WEBPACK_DEST_ENTRIES) node_modules
223223

224224
.PHONY: clean
225225
clean:
@@ -282,7 +282,10 @@ errcheck:
282282

283283
.PHONY: revive
284284
revive:
285-
GO111MODULE=on $(GO) run -mod=vendor build/lint.go -config .revive.toml -exclude=./vendor/... ./... || exit 1
285+
@hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
286+
GO111MODULE=off $(GO) get -u github.com/mgechev/revive; \
287+
fi
288+
@revive -config .revive.toml -exclude=./vendor/... ./...
286289

287290
.PHONY: misspell-check
288291
misspell-check:

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<p align="center">
22
<a href="https://gitea.io/">
3-
<img alt="Gitea" src="https://raw.githubusercontent.com/go-gitea/gitea/master/public/img/gitea.svg" width="220"/>
3+
<img alt="Gitea" src="https://raw.githubusercontent.com/go-gitea/gitea/main/public/img/gitea.svg" width="220"/>
44
</a>
55
</p>
66
<h1 align="center">Gitea - Git with a cup of tea</h1>
77

88
<p align="center">
99
<a href="https://drone.gitea.io/go-gitea/gitea" title="Build Status">
10-
<img src="https://drone.gitea.io/api/badges/go-gitea/gitea/status.svg?ref=refs/heads/master">
10+
<img src="https://drone.gitea.io/api/badges/go-gitea/gitea/status.svg?ref=refs/heads/main">
1111
</a>
1212
<a href="https://discord.gg/Gitea" title="Join the Discord chat at https://discord.gg/Gitea">
1313
<img src="https://img.shields.io/discord/322538954119184384.svg">
@@ -16,7 +16,7 @@
1616
<img src="https://images.microbadger.com/badges/image/gitea/gitea.svg">
1717
</a>
1818
<a href="https://codecov.io/gh/go-gitea/gitea" title="Codecov">
19-
<img src="https://codecov.io/gh/go-gitea/gitea/branch/master/graph/badge.svg">
19+
<img src="https://codecov.io/gh/go-gitea/gitea/branch/main/graph/badge.svg">
2020
</a>
2121
<a href="https://godoc.org/code.gitea.io/gitea" title="Go Report Card">
2222
<img src="https://goreportcard.com/badge/code.gitea.io/gitea">
@@ -150,7 +150,7 @@ We're [working on it](https://github.com/go-gitea/gitea/issues/1029).
150150
## License
151151

152152
This project is licensed under the MIT License.
153-
See the [LICENSE](https://github.com/go-gitea/gitea/blob/master/LICENSE) file
153+
See the [LICENSE](https://github.com/go-gitea/gitea/blob/main/LICENSE) file
154154
for the full license text.
155155

156156
## Screenshots

README_ZH.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<p align="center">
22
<a href="https://gitea.io/">
3-
<img alt="Gitea" src="https://raw.githubusercontent.com/go-gitea/gitea/master/public/img/gitea.svg" width="220"/>
3+
<img alt="Gitea" src="https://raw.githubusercontent.com/go-gitea/gitea/main/public/img/gitea.svg" width="220"/>
44
</a>
55
</p>
66
<h1 align="center">Gitea - Git with a cup of tea</h1>
77

88
<p align="center">
99
<a href="https://drone.gitea.io/go-gitea/gitea" title="Build Status">
10-
<img src="https://drone.gitea.io/api/badges/go-gitea/gitea/status.svg?ref=refs/heads/master">
10+
<img src="https://drone.gitea.io/api/badges/go-gitea/gitea/status.svg?ref=refs/heads/main">
1111
</a>
1212
<a href="https://discord.gg/Gitea" title="Join the Discord chat at https://discord.gg/Gitea">
1313
<img src="https://img.shields.io/discord/322538954119184384.svg">
@@ -16,7 +16,7 @@
1616
<img src="https://images.microbadger.com/badges/image/gitea/gitea.svg">
1717
</a>
1818
<a href="https://codecov.io/gh/go-gitea/gitea" title="Codecov">
19-
<img src="https://codecov.io/gh/go-gitea/gitea/branch/master/graph/badge.svg">
19+
<img src="https://codecov.io/gh/go-gitea/gitea/branch/main/graph/badge.svg">
2020
</a>
2121
<a href="https://godoc.org/code.gitea.io/gitea" title="Go Report Card">
2222
<img src="https://goreportcard.com/badge/code.gitea.io/gitea">
@@ -79,7 +79,7 @@ Fork -> Patch -> Push -> Pull Request
7979

8080
## 授权许可
8181

82-
本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 [LICENSE](https://github.com/go-gitea/gitea/blob/master/LICENSE) 文件中。
82+
本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 [LICENSE](https://github.com/go-gitea/gitea/blob/main/LICENSE) 文件中。
8383

8484
## 截图
8585

build.go

-8
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ package main
1010
// These libraries will not be included in a normal compilation.
1111

1212
import (
13-
// for lint
14-
_ "github.com/mgechev/dots"
15-
_ "github.com/mgechev/revive/formatter"
16-
_ "github.com/mgechev/revive/lint"
17-
_ "github.com/mgechev/revive/rule"
18-
_ "github.com/mitchellh/go-homedir"
19-
_ "github.com/pelletier/go-toml"
20-
2113
// for embed
2214
_ "github.com/shurcooL/vfsgen"
2315

0 commit comments

Comments
 (0)