Skip to content

Commit 2cb7f9d

Browse files
committed
Merge branch 'master' of git://github.com/go-gitea/gitea
2 parents 493698d + 87f8a3d commit 2cb7f9d

File tree

1,596 files changed

+75408
-44527
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,596 files changed

+75408
-44527
lines changed

.drone.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,17 @@ steps:
7070
- make checks-backend
7171
depends_on: [lint-backend]
7272

73+
- name: test-frontend
74+
image: node:14
75+
commands:
76+
- make test-frontend
77+
depends_on: [lint-frontend]
78+
7379
- name: build-frontend
7480
image: node:14
7581
commands:
7682
- make frontend
77-
depends_on: [lint-frontend]
83+
depends_on: [test-frontend]
7884

7985
- name: build-backend-no-gcc
8086
pull: always
@@ -495,7 +501,7 @@ steps:
495501
pull: always
496502
image: techknowlogick/xgo:go-1.16.x
497503
commands:
498-
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
504+
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
499505
- export PATH=$PATH:$GOPATH/bin
500506
- make release
501507
environment:
@@ -591,7 +597,7 @@ steps:
591597
pull: always
592598
image: techknowlogick/xgo:go-1.16.x
593599
commands:
594-
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
600+
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
595601
- export PATH=$PATH:$GOPATH/bin
596602
- make release
597603
environment:

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ insert_final_newline = true
1212
[*.{go,tmpl,html}]
1313
indent_style = tab
1414

15+
[templates/custom/*.tmpl]
16+
insert_final_newline = false
17+
18+
[templates/swagger/v1_json.tmpl]
19+
indent_style = space
20+
21+
[templates/user/auth/oidc_wellknown.tmpl]
22+
indent_style = space
23+
1524
[Makefile]
1625
indent_style = tab
1726

.eslintrc

+18-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ root: true
22
reportUnusedDisableDirectives: true
33

44
ignorePatterns:
5-
- /web_src/js/vendor
65
- /templates/base/head.tmpl
76
- /templates/repo/activity.tmpl
87
- /templates/repo/view_file.tmpl
@@ -53,6 +52,12 @@ overrides:
5352
rules:
5453
import/no-unresolved: [0]
5554
import/no-extraneous-dependencies: [0]
55+
- files: ["*.test.js"]
56+
env:
57+
jest: true
58+
- files: ["*.config.js"]
59+
rules:
60+
import/no-unused-modules: [0]
5661

5762
rules:
5863
accessor-pairs: [2]
@@ -343,6 +348,7 @@ rules:
343348
unicode-bom: [2, never]
344349
unicorn/better-regex: [0]
345350
unicorn/catch-error-name: [0]
351+
unicorn/consistent-destructuring: [2]
346352
unicorn/consistent-function-scoping: [2]
347353
unicorn/custom-error-definition: [0]
348354
unicorn/empty-brace-spaces: [2]
@@ -355,19 +361,24 @@ rules:
355361
unicorn/import-style: [0]
356362
unicorn/new-for-builtins: [2]
357363
unicorn/no-abusive-eslint-disable: [0]
364+
unicorn/no-array-for-each: [0]
358365
unicorn/no-array-instanceof: [0]
366+
unicorn/no-array-push-push: [2]
359367
unicorn/no-console-spaces: [0]
360368
unicorn/no-fn-reference-in-iterator: [0]
361369
unicorn/no-for-loop: [0]
362370
unicorn/no-hex-escape: [0]
363371
unicorn/no-keyword-prefix: [0]
364372
unicorn/no-lonely-if: [2]
365373
unicorn/no-nested-ternary: [0]
374+
unicorn/no-new-array: [0]
366375
unicorn/no-new-buffer: [0]
367376
unicorn/no-null: [0]
368377
unicorn/no-object-as-default-parameter: [2]
369378
unicorn/no-process-exit: [0]
370379
unicorn/no-reduce: [2]
380+
unicorn/no-static-only-class: [2]
381+
unicorn/no-this-assignment: [2]
371382
unicorn/no-unreadable-array-destructuring: [0]
372383
unicorn/no-unsafe-regex: [0]
373384
unicorn/no-unused-properties: [2]
@@ -377,8 +388,12 @@ rules:
377388
unicorn/numeric-separators-style: [0]
378389
unicorn/prefer-add-event-listener: [2]
379390
unicorn/prefer-array-find: [2]
391+
unicorn/prefer-array-flat: [2]
392+
unicorn/prefer-array-index-of: [2]
393+
unicorn/prefer-array-some: [2]
380394
unicorn/prefer-dataset: [2]
381395
unicorn/prefer-date-now: [2]
396+
unicorn/prefer-default-parameters: [0]
382397
unicorn/prefer-event-key: [2]
383398
unicorn/prefer-includes: [2]
384399
unicorn/prefer-math-trunc: [2]
@@ -390,11 +405,13 @@ rules:
390405
unicorn/prefer-optional-catch-binding: [2]
391406
unicorn/prefer-query-selector: [0]
392407
unicorn/prefer-reflect-apply: [0]
408+
unicorn/prefer-regexp-test: [2]
393409
unicorn/prefer-replace-all: [0]
394410
unicorn/prefer-set-has: [0]
395411
unicorn/prefer-spread: [0]
396412
unicorn/prefer-starts-ends-with: [2]
397413
unicorn/prefer-string-slice: [0]
414+
unicorn/prefer-switch: [0]
398415
unicorn/prefer-ternary: [0]
399416
unicorn/prefer-text-content: [2]
400417
unicorn/prefer-trim-start-end: [2]

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ _testmain.go
3333

3434
*coverage.out
3535
coverage.all
36+
cpu.out
3637

3738
/modules/options/bindata.go
3839
/modules/options/bindata.go.hash
@@ -82,6 +83,7 @@ coverage.all
8283
/public/css
8384
/public/fonts
8485
/public/img/webpack
86+
/web_src/fomantic/node_modules
8587
/web_src/fomantic/build/*
8688
!/web_src/fomantic/build/semantic.js
8789
!/web_src/fomantic/build/semantic.css

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
audit=false
22
fund=false
3+
update-notifier=false
34
package-lock=true
45
save-exact=true

CHANGELOG.md

+98-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,47 @@ 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.0-RC1](https://github.com/go-gitea/gitea/releases/tag/v1.14.0) - 2021-03-19
7+
## [1.14.1](https://github.com/go-gitea/gitea/releases/tag/v1.14.1) - 2021-04-15
8+
9+
* BUGFIXES
10+
* Fix bug clone wiki (#15499) (#15502)
11+
* Github Migration ignore rate limit, if not enabled (#15490) (#15495)
12+
* Use subdir for URL (#15446) (#15493)
13+
* Query the DB for the hash before inserting in to email_hash (#15457) (#15491)
14+
* Ensure review dismissal only dismisses the correct review (#15477) (#15489)
15+
* Use index of the supported tags to choose user lang (#15452) (#15488)
16+
* Fix wrong file link in code search page (#15466) (#15486)
17+
* Quick template fix for built-in SSH server in admin config (#15464) (#15481)
18+
* Prevent superfluous response.WriteHeader (#15456) (#15476)
19+
* Fix ambiguous argument error on tags (#15432) (#15474)
20+
* Add created_unix instead of expiry to migration (#15458) (#15463)
21+
* Fix repository search (#15428) (#15442)
22+
* Prevent NPE on avatar direct rendering if federated avatars disabled (#15434) (#15439)
23+
* Fix wiki clone urls (#15430) (#15431)
24+
* Fix dingtalk icon url at webhook (#15417) (#15426)
25+
* Standardise icon on projects PR page (#15387) (#15408)
26+
* ENHANCEMENTS
27+
* Add option to skip LFS/attachment files for `dump` (#15407) (#15492)
28+
* Clone panel fixes (#15436)
29+
* Use semantic dropdown for code search query type (#15276) (#15364)
30+
* BUILD
31+
* Build go-git variants for windows (#15482) (#15487)
32+
* Lock down build-images dependencies (Partial #15479) (#15480)
33+
* MISC
34+
* Performance improvement for list pull requests (#15447) (#15500)
35+
* Fix potential copy lfs records failure when fork a repository (#15441) (#15485)
36+
37+
## [1.14.0](https://github.com/go-gitea/gitea/releases/tag/v1.14.0) - 2021-04-11
838

939
* SECURITY
1040
* Respect approved email domain list for externally validated user registration (#15014)
1141
* Add reverse proxy configuration support for remote IP address detection (#14959)
1242
* Ensure validation occurs on clone addresses too (#14994)
1343
* Fix several render issues highlighted during fuzzing (#14986)
1444
* BREAKING
45+
* Fix double 'push tag' action feed (#15078) (#15083)
46+
* Remove possible resource leak (#15067) (#15082)
47+
* Handle unauthorized user events gracefully (#15071) (#15074)
1548
* Restore Access.log following migration to Chi framework (Stops access logging of /api/internal routes) (#14475)
1649
* Migrate from Macaron to Chi framework (#14293)
1750
* Deprecate building for mips (#14174)
@@ -42,6 +75,7 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
4275
* Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244)
4376
* Create Rootless Docker image (#10154)
4477
* API
78+
* Speedup issue search (#15179) (#15192)
4579
* Get pull, return head branch sha, even if deleted (#14931)
4680
* Export LFS & TimeTracking function status (#14753)
4781
* Show Gitea version in swagger (#14654)
@@ -66,6 +100,20 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
66100
* Add more filters to issues search (#13514)
67101
* Add review request api (#11355)
68102
* BUGFIXES
103+
* Fix delete nonexist oauth application 500 and prevent deadlock (#15384) (#15396)
104+
* Always set the merge base used to merge the commit (#15352) (#15385)
105+
* Upgrade to bluemonday 1.0.7 (#15379) (#15380)
106+
* Turn RepoRef and RepoAssignment back into func(*Context) (#15372) (#15377)
107+
* Move FCGI req.URL.Path fix-up to the FCGI listener (#15292) (#15361)
108+
* Show diff on rename with diff changes (#15338) (#15339)
109+
* Fix handling of logout event (#15323) (#15337)
110+
* Fix CanCreateRepo check (#15311) (#15321)
111+
* Fix xorm log stack level (#15285) (#15316)
112+
* Fix bug in Wrap (#15302) (#15309)
113+
* Drop the event source if we are unauthorized (#15275) (#15280)
114+
* Backport Fix graph pagination (#15225) (#15249)
115+
* Prevent NPE in CommentMustAsDiff if no hunk header (#15199) (#15200)
116+
* should run RetrieveRepoMetas() for empty pr (#15187) (#15190)
69117
* Move setting to enable closing issue via commit in non default branch to repo settings (#14965)
70118
* Show correct issues for team dashboard (#14952)
71119
* Ensure that new pull request button works on forked forks owned by owner of the root and reduce ambiguity (#14932)
@@ -122,6 +170,9 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
122170
* Use GO variable in go-check target (#13146) (#13147)
123171
* ENHANCEMENTS
124172
* UI style improvements
173+
* Dropzone styling improvements (#15291) (#15374)
174+
* Add size to Save function (#15264) (#15270)
175+
* Monaco improvements (#15333) (#15345)
125176
* Support .mailmap in code activity stats (#15009)
126177
* Sort release attachments by name (#15008)
127178
* Add ui.explore settings to control view of explore pages (#14094)
@@ -267,6 +318,52 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
267318
* Reduce make verbosity (#13803)
268319
* Add git command error directory on log (#13194)
269320

321+
## [1.13.7](https://github.com/go-gitea/gitea/releases/tag/v1.13.7) - 2021-04-07
322+
323+
* SECURITY
324+
* Update to bluemonday-1.0.6 (#15294) (#15298)
325+
* Clusterfuzz found another way (#15160) (#15169)
326+
* API
327+
* Fix wrong user returned in API (#15139) (#15150)
328+
* BUGFIXES
329+
* Add 'fonts' into 'KnownPublicEntries' (#15188) (#15317)
330+
* Speed up `enry.IsVendor` (#15213) (#15246)
331+
* Response 404 for diff/patch of a commit that not exist (#15221) (#15238)
332+
* Prevent NPE in CommentMustAsDiff if no hunk header (#15199) (#15201)
333+
* MISC
334+
* Add size to Save function (#15264) (#15271)
335+
336+
## [1.13.6](https://github.com/go-gitea/gitea/releases/tag/v1.13.6) - 2021-03-23
337+
338+
* SECURITY
339+
* Fix bug on avatar middleware (#15124) (#15125)
340+
* Fix another clusterfuzz identified issue (#15096) (#15114)
341+
* API
342+
* Fix nil exeption for get pull reviews API #15104 (#15106)
343+
* BUGFIXES
344+
* Fix markdown rendering in milestone content (#15056) (#15092)
345+
346+
## [1.13.5](https://github.com/go-gitea/gitea/releases/tag/v1.13.5) - 2021-03-21
347+
348+
* SECURITY
349+
* Update to goldmark 1.3.3 (#15059) (#15061)
350+
* Another clusterfuzz spotted issue (#15032) (#15034)
351+
* API
352+
* Fix set milestone on PR creation (#14981) (#15001)
353+
* Prevent panic when editing forked repos by API (#14960) (#14963)
354+
* BUGFIXES
355+
* Fix bug when upload on web (#15042) (#15055)
356+
* Delete Labels & IssueLabels on Repo Delete too (#15039) (#15051)
357+
* Fix postgres ID sequences broken by recreate-table (#15015) (#15029)
358+
* Fix several render issues (#14986) (#15013)
359+
* Make sure sibling images get a link too (#14979) (#14995)
360+
* Fix Anchor jumping with escaped query components (#14969) (#14977)
361+
* Fix release mail html template (#14976)
362+
* Fix excluding more than two labels on issues list (#14962) (#14973)
363+
* Don't mark each comment poster as OP (#14971) (#14972)
364+
* Add "captcha" to list of reserved usernames (#14930)
365+
* Re-enable import local paths after reversion from #13610 (#14925) (#14927)
366+
270367
## [1.13.4](https://github.com/go-gitea/gitea/releases/tag/v1.13.4) - 2021-03-07
271368

272369
* SECURITY

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ RUN set -x && \
4747
-s /bin/bash \
4848
-G git \
4949
git && \
50-
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none 2>/dev/null | base64)" | chpasswd
50+
echo "git:*" | chpasswd
5151

5252
ENV USER git
5353
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

MAINTAINERS

+1
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Karl Heinz Marbaise <[email protected]> (@khmarbaise)
4141
Norwin Roosen <[email protected]> (@noerw)
4242
Kyle Dumont <[email protected]> (@kdumontnu)
4343
Patrick Schratz <[email protected]> (@pat-s)
44+
Janis Estelmann <[email protected]> (@KN4CK3R)

0 commit comments

Comments
 (0)