Skip to content

Commit 0bf69ef

Browse files
authored
Merge branch 'master' into 13764-delete-comment
2 parents d98771c + 056b8f5 commit 0bf69ef

Some content is hidden

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

49 files changed

+1276
-1760
lines changed

CHANGELOG.md

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ 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.13.0-RC1](https://github.com/go-gitea/gitea/releases/tag/v1.13.0-rc1) - 2020-10-14
8-
7+
## [1.13.0](https://github.com/go-gitea/gitea/releases/tag/v1.13.0) - 2020-12-01
98
* SECURITY
9+
* Add Allow-/Block-List for Migrate & Mirrors (#13610) (#13776)
10+
* Prevent git operations for inactive users (#13527) (#13536)
11+
* Disallow urlencoded new lines in git protocol paths if there is a port (#13521) (#13524)
1012
* Mitigate Security vulnerability in the git hook feature (#13058)
1113
* Disable DSA ssh keys by default (#13056)
1214
* Set TLS minimum version to 1.2 (#12689)
1315
* Use argon as default password hash algorithm (#12688)
1416
* BREAKING
17+
* Set RUN_MODE prod by default (#13765) (#13767)
1518
* Don't replace underscores in auto-generated IDs in goldmark (#12805)
1619
* Add Primary Key to Topic and RepoTopic tables (#12639)
1720
* Disable password complexity check default (#12557)
@@ -71,6 +74,40 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
7174
* Add endpoint for Branch Creation (#11607)
7275
* Add pagination headers on endpoints that support total count from database (#11145)
7376
* BUGFIXES
77+
* Fix bogus http requests on diffs (#13760) (#13761)
78+
* Show 'owner' tag for real owner (#13689) (#13743)
79+
* Validate email before inserting/updating (#13475) (#13666)
80+
* Fix issue/pull request list assignee filter (#13647) (#13651)
81+
* Gitlab migration support for subdirectories (#13563) (#13591)
82+
* Fix logic for preferred license setting (#13550) (#13557)
83+
* Add missed sync branch/tag webhook (#13538) (#13556)
84+
* Migration won't fail on non-migrated reactions (#13507)
85+
* Fix Italian language file parsing error (#13156)
86+
* Show outdated comments in pull request (#13148) (#13162)
87+
* Fix parsing of pre-release git version (#13169) (#13172)
88+
* Fix diff skipping lines (#13154) (#13155)
89+
* When handling errors in storageHandler check underlying error (#13178) (#13193)
90+
* Fix size and clickable area on file table back link (#13205) (#13207)
91+
* Add better error checking for inline html diff code (#13251)
92+
* Fix initial commit page & binary munching problem (#13249) (#13258)
93+
* Fix migrations from remote Gitea instances when configuration not set (#13229) (#13273)
94+
* Store task errors following migrations and display them (#13246) (#13287)
95+
* Fix bug isEnd detection on getIssues/getPullRequests (#13299) (#13301)
96+
* When the git ref is unable to be found return broken pr (#13218) (#13303)
97+
* Ensure topics added using the API are added to the repository (#13285) (#13302)
98+
* Fix avatar autogeneration (#13233) (#13282)
99+
* Add migrated pulls to pull request task queue (#13331) (#13334)
100+
* Issue comment reactions should also check pull type on API (#13349) (#13350)
101+
* Fix links to repositories in /user/setting/repos (#13360) (#13362)
102+
* Remove obsolete change of email on profile page (#13341) (#13347)
103+
* Fix scrolling to resolved comment anchors (#13343) (#13371)
104+
* Storage configuration support `[storage]` (#13314) (#13379)
105+
* When creating line diffs do not split within an html entity (#13357) (#13375) (#13425) (#13427)
106+
* Fix reactions on code comments (#13390) (#13401)
107+
* Add missing full names when DEFAULT_SHOW_FULL_NAME is enabled (#13424)
108+
* Replies to outdated code comments should also be outdated (#13217) (#13433)
109+
* Fix panic bug in handling multiple references in commit (#13486) (#13487)
110+
* Prevent panic on git blame by limiting lines to 4096 bytes at most (#13470) (#13491)
74111
* Show original author's reviews on pull summary box (#13127)
75112
* Update golangci-lint to version 1.31.0 (#13102)
76113
* Fix line break for MS teams webhook (#13081)
@@ -140,6 +177,10 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
140177
* Fix Enter not working in SimpleMDE (#11564)
141178
* Fix bug about can't skip commits base on base branch (#11555)
142179
* ENHANCEMENTS
180+
* Only Return JSON for responses (#13511) (#13565)
181+
* Use existing analyzer module for language detection for highlighting (#13522) (#13551)
182+
* Return the full rejection message and errors in flash errors (#13221) (#13237)
183+
* Remove PAM from auth dropdown when unavailable (#13276) (#13281)
143184
* Add HostCertificate to sshd_config in Docker image (#13143)
144185
* Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database (#13124)
145186
* Improve error feedback for duplicate deploy keys (#13112)

Makefile

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,15 @@ clean:
223223

224224
.PHONY: fmt
225225
fmt:
226-
$(GOFMT) -w $(GO_SOURCES_OWN)
226+
@echo "Running go fmt..."
227+
@$(GOFMT) -w $(GO_SOURCES_OWN)
227228

228229
.PHONY: vet
229230
vet:
230-
# Default vet
231-
$(GO) vet $(GO_PACKAGES)
232-
# Custom vet
233-
$(GO) build -mod=vendor code.gitea.io/gitea-vet
234-
$(GO) vet -vettool=gitea-vet $(GO_PACKAGES)
231+
@echo "Running go vet..."
232+
@$(GO) vet $(GO_PACKAGES)
233+
@$(GO) build -mod=vendor code.gitea.io/gitea-vet
234+
@$(GO) vet -vettool=gitea-vet $(GO_PACKAGES)
235235

236236
.PHONY: $(TAGS_EVIDENCE)
237237
$(TAGS_EVIDENCE):
@@ -268,7 +268,8 @@ errcheck:
268268
@hash errcheck > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
269269
GO111MODULE=off $(GO) get -u github.com/kisielk/errcheck; \
270270
fi
271-
errcheck $(GO_PACKAGES)
271+
@echo "Running errcheck..."
272+
@errcheck $(GO_PACKAGES)
272273

273274
.PHONY: revive
274275
revive:
@@ -279,14 +280,16 @@ misspell-check:
279280
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
280281
GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
281282
fi
282-
misspell -error -i unknwon,destory $(GO_SOURCES_OWN)
283+
@echo "Running misspell-check..."
284+
@misspell -error -i unknwon,destory $(GO_SOURCES_OWN)
283285

284286
.PHONY: misspell
285287
misspell:
286288
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
287289
GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
288290
fi
289-
misspell -w -i unknwon $(GO_SOURCES_OWN)
291+
@echo "Running go misspell..."
292+
@misspell -w -i unknwon $(GO_SOURCES_OWN)
290293

291294
.PHONY: fmt-check
292295
fmt-check:
@@ -336,11 +339,12 @@ watch-backend: go-check
336339

337340
.PHONY: test
338341
test:
339-
$(GO) test $(GOTESTFLAGS) -mod=vendor -tags='sqlite sqlite_unlock_notify' $(GO_PACKAGES)
342+
@echo "Running go test..."
343+
@$(GO) test $(GOTESTFLAGS) -mod=vendor -tags='sqlite sqlite_unlock_notify' $(GO_PACKAGES)
340344

341345
.PHONY: test-check
342346
test-check:
343-
@echo "Checking if tests have changed the source tree...";
347+
@echo "Running test-check...";
344348
@diff=$$(git status -s); \
345349
if [ -n "$$diff" ]; then \
346350
echo "make test has changed files in the source tree:"; \
@@ -352,15 +356,17 @@ test-check:
352356

353357
.PHONY: test\#%
354358
test\#%:
355-
$(GO) test -mod=vendor -tags='sqlite sqlite_unlock_notify' -run $(subst .,/,$*) $(GO_PACKAGES)
359+
@echo "Running go test..."
360+
@$(GO) test -mod=vendor -tags='sqlite sqlite_unlock_notify' -run $(subst .,/,$*) $(GO_PACKAGES)
356361

357362
.PHONY: coverage
358363
coverage:
359364
GO111MODULE=on $(GO) run -mod=vendor build/gocovmerge.go integration.coverage.out $(shell find . -type f -name "coverage.out") > coverage.all
360365

361366
.PHONY: unit-test-coverage
362367
unit-test-coverage:
363-
$(GO) test $(GOTESTFLAGS) -mod=vendor -tags='sqlite sqlite_unlock_notify' -cover -coverprofile coverage.out $(GO_PACKAGES) && echo "\n==>\033[32m Ok\033[m\n" || exit 1
368+
@echo "Running unit-test-coverage..."
369+
@$(GO) test $(GOTESTFLAGS) -mod=vendor -tags='sqlite sqlite_unlock_notify' -cover -coverprofile coverage.out $(GO_PACKAGES) && echo "\n==>\033[32m Ok\033[m\n" || exit 1
364370

365371
.PHONY: vendor
366372
vendor:
@@ -548,7 +554,8 @@ backend: go-check generate $(EXECUTABLE)
548554

549555
.PHONY: generate
550556
generate: $(TAGS_PREREQ)
551-
CC= GOOS= GOARCH= $(GO) generate -mod=vendor -tags '$(TAGS)' $(GO_PACKAGES)
557+
@echo "Running go generate..."
558+
@CC= GOOS= GOARCH= $(GO) generate -mod=vendor -tags '$(TAGS)' $(GO_PACKAGES)
552559

553560
$(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
554561
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build -mod=vendor $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@

0 commit comments

Comments
 (0)