Skip to content

Commit 8a5a948

Browse files
authored
Merge branch 'main' into fix-15460-encrypt-ldap-bind-password-in-db
2 parents a5f7e4c + c3aaf5e commit 8a5a948

File tree

1,224 files changed

+61236
-48332
lines changed

Some content is hidden

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

1,224 files changed

+61236
-48332
lines changed

.drone.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ trigger:
1515
steps:
1616
- name: deps-frontend
1717
pull: always
18-
image: node:14
18+
image: node:16
1919
commands:
2020
- make node_modules
2121

2222
- name: lint-frontend
23-
image: node:14
23+
image: node:16
2424
commands:
2525
- make lint-frontend
2626
depends_on: [deps-frontend]
@@ -58,7 +58,7 @@ steps:
5858
TAGS: bindata gogit sqlite sqlite_unlock_notify
5959

6060
- name: checks-frontend
61-
image: node:14
61+
image: node:16
6262
commands:
6363
- make checks-frontend
6464
depends_on: [deps-frontend]
@@ -71,13 +71,13 @@ steps:
7171
depends_on: [lint-backend]
7272

7373
- name: test-frontend
74-
image: node:14
74+
image: node:16
7575
commands:
7676
- make test-frontend
7777
depends_on: [lint-frontend]
7878

7979
- name: build-frontend
80-
image: node:14
80+
image: node:16
8181
commands:
8282
- make frontend
8383
depends_on: [test-frontend]
@@ -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:
@@ -414,6 +414,7 @@ steps:
414414
settings:
415415
author_email: "[email protected]"
416416
author_name: GiteaBot
417+
branch: main
417418
commit: true
418419
commit_message: "[skip ci] Updated translations via Crowdin"
419420
remote: "[email protected]:go-gitea/gitea.git"
@@ -443,7 +444,7 @@ platform:
443444

444445
trigger:
445446
branch:
446-
- master
447+
- main
447448
event:
448449
- cron
449450
cron:
@@ -461,6 +462,7 @@ steps:
461462
settings:
462463
author_email: "[email protected]"
463464
author_name: GiteaBot
465+
branch: main
464466
commit: true
465467
commit_message: "[skip ci] Updated licenses and gitignores "
466468
remote: "[email protected]:go-gitea/gitea.git"
@@ -482,7 +484,7 @@ workspace:
482484

483485
trigger:
484486
branch:
485-
- master
487+
- main
486488
- "release/*"
487489
event:
488490
- push
@@ -528,7 +530,7 @@ steps:
528530
image: plugins/s3:1
529531
settings:
530532
acl: public-read
531-
bucket: releases
533+
bucket: gitea-artifacts
532534
endpoint: https://storage.gitea.io
533535
path_style: true
534536
source: "dist/release/*"
@@ -545,24 +547,24 @@ steps:
545547
event:
546548
- push
547549

548-
- name: release-master
550+
- name: release-main
549551
image: plugins/s3:1
550552
settings:
551553
acl: public-read
552-
bucket: releases
554+
bucket: gitea-artifacts
553555
endpoint: https://storage.gitea.io
554556
path_style: true
555557
source: "dist/release/*"
556558
strip_prefix: dist/release/
557-
target: /gitea/master
559+
target: /gitea/main
558560
environment:
559561
AWS_ACCESS_KEY_ID:
560562
from_secret: aws_access_key_id
561563
AWS_SECRET_ACCESS_KEY:
562564
from_secret: aws_secret_access_key
563565
when:
564566
branch:
565-
- master
567+
- main
566568
event:
567569
- push
568570

@@ -624,7 +626,7 @@ steps:
624626
image: plugins/s3:1
625627
settings:
626628
acl: public-read
627-
bucket: releases
629+
bucket: gitea-artifacts
628630
endpoint: https://storage.gitea.io
629631
path_style: true
630632
source: "dist/release/*"
@@ -683,7 +685,7 @@ steps:
683685
from_secret: netlify_token
684686
when:
685687
branch:
686-
- master
688+
- main
687689
event:
688690
- push
689691

@@ -701,7 +703,7 @@ depends_on:
701703

702704
trigger:
703705
ref:
704-
- refs/heads/master
706+
- refs/heads/main
705707
- "refs/tags/**"
706708
event:
707709
exclude:
@@ -798,7 +800,7 @@ depends_on:
798800

799801
trigger:
800802
ref:
801-
- refs/heads/master
803+
- refs/heads/main
802804
- "refs/tags/**"
803805
event:
804806
exclude:
@@ -886,7 +888,7 @@ steps:
886888

887889
trigger:
888890
ref:
889-
- refs/heads/master
891+
- refs/heads/main
890892
- "refs/tags/**"
891893
event:
892894
exclude:
@@ -909,7 +911,7 @@ clone:
909911

910912
trigger:
911913
branch:
912-
- master
914+
- main
913915
- "release/*"
914916
event:
915917
- push

.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ rules:
366366
unicorn/no-array-instanceof: [0]
367367
unicorn/no-array-push-push: [2]
368368
unicorn/no-console-spaces: [0]
369+
unicorn/no-document-cookie: [2]
369370
unicorn/no-fn-reference-in-iterator: [0]
370371
unicorn/no-for-loop: [0]
371372
unicorn/no-hex-escape: [0]
@@ -389,6 +390,7 @@ rules:
389390
unicorn/numeric-separators-style: [0]
390391
unicorn/prefer-add-event-listener: [2]
391392
unicorn/prefer-array-find: [2]
393+
unicorn/prefer-array-flat-map: [2]
392394
unicorn/prefer-array-flat: [2]
393395
unicorn/prefer-array-index-of: [2]
394396
unicorn/prefer-array-some: [2]
@@ -399,8 +401,10 @@ rules:
399401
unicorn/prefer-includes: [2]
400402
unicorn/prefer-math-trunc: [2]
401403
unicorn/prefer-modern-dom-apis: [0]
404+
unicorn/prefer-module: [2]
402405
unicorn/prefer-negative-index: [2]
403406
unicorn/prefer-node-append: [0]
407+
unicorn/prefer-node-protocol: [0]
404408
unicorn/prefer-node-remove: [0]
405409
unicorn/prefer-number-properties: [0]
406410
unicorn/prefer-optional-catch-binding: [2]
@@ -412,6 +416,7 @@ rules:
412416
unicorn/prefer-spread: [0]
413417
unicorn/prefer-starts-ends-with: [2]
414418
unicorn/prefer-string-slice: [0]
419+
unicorn/prefer-switch: [0]
415420
unicorn/prefer-ternary: [0]
416421
unicorn/prefer-text-content: [2]
417422
unicorn/prefer-trim-start-end: [2]

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ cpu.out
7676
/integrations/mssql.ini
7777
/node_modules
7878
/yarn.lock
79+
/yarn-error.log
80+
/npm-debug.log*
7981
/public/js
8082
/public/serviceworker.js
8183
/public/css

.golangci.yml

Lines changed: 4 additions & 0 deletions
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

Lines changed: 50 additions & 0 deletions
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

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RUN addgroup \
5353
-u 1000 \
5454
-G git \
5555
git && \
56-
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
56+
echo "git:*" | chpasswd -e
5757

5858
ENV USER git
5959
ENV GITEA_CUSTOM /data/gitea

Dockerfile.rootless

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ RUN addgroup \
4646
-s /bin/bash \
4747
-u 1000 \
4848
-G git \
49-
git && \
50-
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
49+
git
5150

5251
RUN mkdir -p /var/lib/gitea /etc/gitea
5352
RUN chown git:git /var/lib/gitea /etc/gitea

Makefile

Lines changed: 9 additions & 5 deletions
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)
@@ -210,15 +210,16 @@ git-check:
210210
.PHONY: node-check
211211
node-check:
212212
$(eval NODE_VERSION := $(shell printf "%03d%03d%03d" $(shell node -v | cut -c2- | tr '.' ' ');))
213+
$(eval MIN_NODE_VER_FMT := $(shell printf "%g.%g.%g" $(shell echo $(MIN_NODE_VERSION) | grep -o ...)))
213214
$(eval NPM_MISSING := $(shell hash npm > /dev/null 2>&1 || echo 1))
214215
@if [ "$(NODE_VERSION)" -lt "$(MIN_NODE_VERSION)" -o "$(NPM_MISSING)" = "1" ]; then \
215-
echo "Gitea requires Node.js 10 or greater and npm to build. You can get it at https://nodejs.org/en/download/"; \
216+
echo "Gitea requires Node.js $(MIN_NODE_VER_FMT) or greater and npm to build. You can get it at https://nodejs.org/en/download/"; \
216217
exit 1; \
217218
fi
218219

219220
.PHONY: clean-all
220221
clean-all: clean
221-
rm -rf $(WEBPACK_DEST_ENTRIES)
222+
rm -rf $(WEBPACK_DEST_ENTRIES) node_modules
222223

223224
.PHONY: clean
224225
clean:
@@ -281,7 +282,10 @@ errcheck:
281282

282283
.PHONY: revive
283284
revive:
284-
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/... ./...
285289

286290
.PHONY: misspell-check
287291
misspell-check:
@@ -355,7 +359,7 @@ test-backend:
355359
@$(GO) test $(GOTESTFLAGS) -mod=vendor -tags='$(TEST_TAGS)' $(GO_PACKAGES)
356360

357361
.PHONY: test-frontend
358-
test-frontend:
362+
test-frontend: node_modules
359363
@NODE_OPTIONS="--experimental-vm-modules --no-warnings" npx jest --color
360364

361365
.PHONY: test-check

0 commit comments

Comments
 (0)