Skip to content

Commit 758b477

Browse files
committed
Merge branch 'main' of https://github.com/go-gitea/gitea into feature-svg-diff
2 parents 0c88002 + 1da0d15 commit 758b477

File tree

1,266 files changed

+62280
-48784
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,266 files changed

+62280
-48784
lines changed

.drone.yml

+23-21
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: "teabot@gitea.io"
416416
author_name: GiteaBot
417+
branch: main
417418
commit: true
418419
commit_message: "[skip ci] Updated translations via Crowdin"
419420
remote: "git@github.com: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: "teabot@gitea.io"
463464
author_name: GiteaBot
465+
branch: main
464466
commit: true
465467
commit_message: "[skip ci] Updated licenses and gitignores "
466468
remote: "git@github.com: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

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ insert_final_newline = false
1818
[templates/swagger/v1_json.tmpl]
1919
indent_style = space
2020

21+
[templates/user/auth/oidc_wellknown.tmpl]
22+
indent_style = space
23+
2124
[Makefile]
2225
indent_style = tab
2326

.eslintrc

+5
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

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ _testmain.go
3232

3333
*coverage.out
3434
coverage.all
35+
cpu.out
3536

3637
/modules/options/bindata.go
3738
/modules/options/bindata.go.hash
@@ -75,6 +76,8 @@ coverage.all
7576
/integrations/mssql.ini
7677
/node_modules
7778
/yarn.lock
79+
/yarn-error.log
80+
/npm-debug.log*
7881
/public/js
7982
/public/serviceworker.js
8083
/public/css

.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

+80
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,86 @@ 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+
57+
## [1.14.1](https://github.com/go-gitea/gitea/releases/tag/v1.14.1) - 2021-04-15
58+
59+
* BUGFIXES
60+
* Fix bug clone wiki (#15499) (#15502)
61+
* Github Migration ignore rate limit, if not enabled (#15490) (#15495)
62+
* Use subdir for URL (#15446) (#15493)
63+
* Query the DB for the hash before inserting in to email_hash (#15457) (#15491)
64+
* Ensure review dismissal only dismisses the correct review (#15477) (#15489)
65+
* Use index of the supported tags to choose user lang (#15452) (#15488)
66+
* Fix wrong file link in code search page (#15466) (#15486)
67+
* Quick template fix for built-in SSH server in admin config (#15464) (#15481)
68+
* Prevent superfluous response.WriteHeader (#15456) (#15476)
69+
* Fix ambiguous argument error on tags (#15432) (#15474)
70+
* Add created_unix instead of expiry to migration (#15458) (#15463)
71+
* Fix repository search (#15428) (#15442)
72+
* Prevent NPE on avatar direct rendering if federated avatars disabled (#15434) (#15439)
73+
* Fix wiki clone urls (#15430) (#15431)
74+
* Fix dingtalk icon url at webhook (#15417) (#15426)
75+
* Standardise icon on projects PR page (#15387) (#15408)
76+
* ENHANCEMENTS
77+
* Add option to skip LFS/attachment files for `dump` (#15407) (#15492)
78+
* Clone panel fixes (#15436)
79+
* Use semantic dropdown for code search query type (#15276) (#15364)
80+
* BUILD
81+
* Build go-git variants for windows (#15482) (#15487)
82+
* Lock down build-images dependencies (Partial #15479) (#15480)
83+
* MISC
84+
* Performance improvement for list pull requests (#15447) (#15500)
85+
* Fix potential copy lfs records failure when fork a repository (#15441) (#15485)
86+
787
## [1.14.0](https://github.com/go-gitea/gitea/releases/tag/v1.14.0) - 2021-04-11
888

989
* SECURITY

Dockerfile

+1-1
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

+1-2
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

0 commit comments

Comments
 (0)