Skip to content

Commit 4cc55b8

Browse files
authored
Merge branch 'main' into fix-29136
2 parents a8e53fc + cb52b17 commit 4cc55b8

File tree

846 files changed

+8809
-3551
lines changed

Some content is hidden

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

846 files changed

+8809
-3551
lines changed

.eslintrc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ rules:
296296
jquery/no-delegate: [2]
297297
jquery/no-each: [0]
298298
jquery/no-extend: [2]
299-
jquery/no-fade: [0]
299+
jquery/no-fade: [2]
300300
jquery/no-filter: [0]
301301
jquery/no-find: [0]
302302
jquery/no-global-eval: [2]
@@ -309,7 +309,7 @@ rules:
309309
jquery/no-is-function: [2]
310310
jquery/no-is: [0]
311311
jquery/no-load: [2]
312-
jquery/no-map: [0]
312+
jquery/no-map: [2]
313313
jquery/no-merge: [2]
314314
jquery/no-param: [2]
315315
jquery/no-parent: [0]
@@ -451,7 +451,7 @@ rules:
451451
no-jquery/no-load: [2]
452452
no-jquery/no-map-collection: [0]
453453
no-jquery/no-map-util: [2]
454-
no-jquery/no-map: [0]
454+
no-jquery/no-map: [2]
455455
no-jquery/no-merge: [2]
456456
no-jquery/no-node-name: [2]
457457
no-jquery/no-noop: [2]

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
open_collective: gitea
2-
custom: https://www.bountysource.com/teams/gitea

.github/workflows/cron-lock.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ jobs:
1919
steps:
2020
- uses: dessant/lock-threads@v5
2121
with:
22-
issue-inactive-days: 45
22+
issue-inactive-days: 10
23+
pr-inactive-days: 7

.stylelintrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ rules:
9898
at-rule-allowed-list: null
9999
at-rule-disallowed-list: null
100100
at-rule-empty-line-before: null
101-
at-rule-no-unknown: true
101+
at-rule-no-unknown: [true, {ignoreAtRules: [tailwind]}]
102102
at-rule-no-vendor-prefix: true
103103
at-rule-property-required-list: null
104104
block-no-empty: true

CHANGELOG.md

Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,240 @@ 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.com).
66

7+
## [1.21.6](https://github.com/go-gitea/gitea/releases/tag/v1.21.6) - 2024-02-22
8+
9+
* SECURITY
10+
* Fix XSS vulnerabilities (#29336)
11+
* Use general token signing secret (#29205) (#29325)
12+
* ENHANCEMENTS
13+
* Refactor git version functions and check compatibility (#29155) (#29157)
14+
* Improve user experience for outdated comments (#29050) (#29086)
15+
* Hide code links on release page if user cannot read code (#29064) (#29066)
16+
* Wrap contained tags and branches again (#29021) (#29026)
17+
* Fix incorrect button CSS usages (#29015) (#29023)
18+
* Strip trailing newline in markdown code copy (#29019) (#29022)
19+
* Implement some action notifier functions (#29173) (#29308)
20+
* Load outdated comments when (un)resolving conversation on PR timeline (#29203) (#29221)
21+
* BUGFIXES
22+
* Refactor issue template parsing and fix API endpoint (#29069) (#29140)
23+
* Fix swift packages not resolving (#29095) (#29102)
24+
* Remove SSH workaround (#27893) (#29332)
25+
* Only log error when tag sync fails (#29295) (#29327)
26+
* Fix SSPI user creation (#28948) (#29323)
27+
* Improve the `issue_comment` workflow trigger event (#29277) (#29322)
28+
* Discard unread data of `git cat-file` (#29297) (#29310)
29+
* Fix error display when merging PRs (#29288) (#29309)
30+
* Prevent double use of `git cat-file` session. (#29298) (#29301)
31+
* Fix missing link on outgoing new release notifications (#29079) (#29300)
32+
* Fix debian InRelease Acquire-By-Hash newline (#29204) (#29299)
33+
* Always write proc-receive hook for all git versions (#29287) (#29291)
34+
* Do not show delete button when time tracker is disabled (#29257) (#29279)
35+
* Workaround to clean up old reviews on creating a new one (#28554) (#29264)
36+
* Fix bug when the linked account was disactived and list the linked accounts (#29263)
37+
* Do not use lower tag names to find releases/tags (#29261) (#29262)
38+
* Fix missed edit issues event for actions (#29237) (#29251)
39+
* Only delete scheduled workflows when needed (#29091) (#29235)
40+
* Make submit event code work with both jQuery event and native event (#29223) (#29234)
41+
* Fix push to create with capitalize repo name (#29090) (#29206)
42+
* Use ghost user if user was not found (#29161) (#29169)
43+
* Dont load Review if Comment is CommentTypeReviewRequest (#28551) (#29160)
44+
* Refactor parseSignatureFromCommitLine (#29054) (#29108)
45+
* Avoid showing unnecessary JS errors when there are elements with different origin on the page (#29081) (#29089)
46+
* Fix gitea-origin-url with default ports (#29085) (#29088)
47+
* Fix orgmode link resolving (#29024) (#29076)
48+
* Fix Elasticsearh Request Entity Too Large #28117 (#29062) (#29075)
49+
* Do not render empty comments (#29039) (#29049)
50+
* Avoid sending update/delete release notice when it is draft (#29008) (#29025)
51+
* Fix gitea-action user avatar broken on edited menu (#29190) (#29307)
52+
* Disallow merge when required checked are missing (#29143) (#29268)
53+
* Fix incorrect link to swift doc and swift package-registry login command (#29096) (#29103)
54+
* Convert visibility to number (#29226) (#29244)
55+
* DOCS
56+
* Remove outdated docs from some languages (#27530) (#29208)
57+
* Fix typos in the documentation (#29048) (#29056)
58+
* Explained where create issue/PR template (#29035)
59+
60+
## [1.21.5](https://github.com/go-gitea/gitea/releases/tag/v1.21.5) - 2024-01-31
61+
62+
* SECURITY
63+
* Prevent anonymous container access if `RequireSignInView` is enabled (#28877) (#28882)
64+
* Update go dependencies and fix go-git (#28893) (#28934)
65+
* BUGFIXES
66+
* Revert "Speed up loading the dashboard on mysql/mariadb (#28546)" (#29006) (#29007)
67+
* Fix an actions schedule bug (#28942) (#28999)
68+
* Fix update enable_prune even if mirror_interval is not provided (#28905) (#28929)
69+
* Fix uploaded artifacts should be overwritten (#28726) backport v1.21 (#28832)
70+
* Preserve BOM in web editor (#28935) (#28959)
71+
* Strip `/` from relative links (#28932) (#28952)
72+
* Don't remove all mirror repository's releases when mirroring (#28817) (#28939)
73+
* Implement `MigrateRepository` for the actions notifier (#28920) (#28923)
74+
* Respect branch info for relative links (#28909) (#28922)
75+
* Don't reload timeline page when (un)resolving or replying conversation (#28654) (#28917)
76+
* Only migrate the first 255 chars of a Github issue title (#28902) (#28912)
77+
* Fix sort bug on repository issues list (#28897) (#28901)
78+
* Fix `DeleteCollaboration` transaction behaviour (#28886) (#28889)
79+
* Fix schedule not trigger bug because matching full ref name with short ref name (#28874) (#28888)
80+
* Fix migrate storage bug (#28830) (#28867)
81+
* Fix archive creating LFS hooks and breaking pull requests (#28848) (#28851)
82+
* Fix reverting a merge commit failing (#28794) (#28825)
83+
* Upgrade xorm to v1.3.7 to fix a resource leak problem caused by Iterate (#28891) (#28895)
84+
* Fix incorrect PostgreSQL connection string for Unix sockets (#28865) (#28870)
85+
* ENHANCEMENTS
86+
* Make loading animation less aggressive (#28955) (#28956)
87+
* Avoid duplicate JS error messages on UI (#28873) (#28881)
88+
* Bump `@github/relative-time-element` to 4.3.1 (#28819) (#28826)
89+
* MISC
90+
* Warn that `DISABLE_QUERY_AUTH_TOKEN` is false only if it's explicitly defined (#28783) (#28868)
91+
* Remove duplicated checkinit on git module (#28824) (#28831)
92+
93+
## [1.21.4](https://github.com/go-gitea/gitea/releases/tag/v1.21.4) - 2024-01-16
94+
95+
* SECURITY
96+
* Update github.com/cloudflare/circl (#28789) (#28790)
97+
* Require token for GET subscription endpoint (#28765) (#28768)
98+
* BUGFIXES
99+
* Use refname:strip-2 instead of refname:short when syncing tags (#28797) (#28811)
100+
* Fix links in issue card (#28806) (#28807)
101+
* Fix nil pointer panic when exec some gitea cli command (#28791) (#28795)
102+
* Require token for GET subscription endpoint (#28765) (#28778)
103+
* Fix button size in "attached header right" (#28770) (#28774)
104+
* Fix `convert.ToTeams` on empty input (#28426) (#28767)
105+
* Hide code related setting options in repository when code unit is disabled (#28631) (#28749)
106+
* Fix incorrect URL for "Reference in New Issue" (#28716) (#28723)
107+
* Fix panic when parsing empty pgsql host (#28708) (#28709)
108+
* Upgrade xorm to new version which supported update join for all supported databases (#28590) (#28668)
109+
* Fix alpine package files are not rebuilt (#28638) (#28665)
110+
* Avoid cycle-redirecting user/login page (#28636) (#28658)
111+
* Fix empty ref for cron workflow runs (#28640) (#28647)
112+
* Remove unnecessary syncbranchToDB with tests (#28624) (#28629)
113+
* Use known issue IID to generate new PR index number when migrating from GitLab (#28616) (#28618)
114+
* Fix flex container width (#28603) (#28605)
115+
* Fix the scroll behavior for emoji/mention list (#28597) (#28601)
116+
* Fix wrong due date rendering in issue list page (#28588) (#28591)
117+
* Fix `status_check_contexts` matching bug (#28582) (#28589)
118+
* Fix 500 error of searching commits (#28576) (#28579)
119+
* Use information from previous blame parts (#28572) (#28577)
120+
* Update mermaid for 1.21 (#28571)
121+
* Fix 405 method not allowed CORS / OIDC (#28583) (#28586) (#28587) (#28611)
122+
* Fix `GetCommitStatuses` (#28787) (#28804)
123+
* Forbid removing the last admin user (#28337) (#28793)
124+
* Fix schedule tasks bugs (#28691) (#28780)
125+
* Fix issue dependencies (#27736) (#28776)
126+
* Fix system webhooks API bug (#28531) (#28666)
127+
* Fix when private user following user, private user will not be counted in his own view (#28037) (#28792)
128+
* Render code block in activity tab (#28816) (#28818)
129+
* ENHANCEMENTS
130+
* Rework markup link rendering (#26745) (#28803)
131+
* Modernize merge button (#28140) (#28786)
132+
* Speed up loading the dashboard on mysql/mariadb (#28546) (#28784)
133+
* Assign pull request to project during creation (#28227) (#28775)
134+
* Show description as tooltip instead of title for labels (#28754) (#28766)
135+
* Make template `DateTime` show proper tooltip (#28677) (#28683)
136+
* Switch destination directory for apt signing keys (#28639) (#28642)
137+
* Include heap pprof in diagnosis report to help debugging memory leaks (#28596) (#28599)
138+
* DOCS
139+
* Suggest to use Type=simple for systemd service (#28717) (#28722)
140+
* Extend description for ARTIFACT_RETENTION_DAYS (#28626) (#28630)
141+
* MISC
142+
* Add -F to commit search to treat keywords as strings (#28744) (#28748)
143+
* Add download attribute to release attachments (#28739) (#28740)
144+
* Concatenate error in `checkIfPRContentChanged` (#28731) (#28737)
145+
* Improve 1.21 document for Database Preparation (#28643) (#28644)
146+
147+
## [1.21.3](https://github.com/go-gitea/gitea/releases/tag/v1.21.3) - 2023-12-21
148+
149+
* SECURITY
150+
* Update golang.org/x/crypto (#28519)
151+
* API
152+
* chore(api): support ignore password if login source type is LDAP for creating user API (#28491) (#28525)
153+
* Add endpoint for not implemented Docker auth (#28457) (#28462)
154+
* ENHANCEMENTS
155+
* Add option to disable ambiguous unicode characters detection (#28454) (#28499)
156+
* Refactor SSH clone URL generation code (#28421) (#28480)
157+
* Polyfill SubmitEvent for PaleMoon (#28441) (#28478)
158+
* BUGFIXES
159+
* Fix the issue ref rendering for wiki (#28556) (#28559)
160+
* Fix duplicate ID when deleting repo (#28520) (#28528)
161+
* Only check online runner when detecting matching runners in workflows (#28286) (#28512)
162+
* Initalize stroage for orphaned repository doctor (#28487) (#28490)
163+
* Fix possible nil pointer access (#28428) (#28440)
164+
* Don't show unnecessary citation JS error on UI (#28433) (#28437)
165+
* DOCS
166+
* Update actions document about comparsion as Github Actions (#28560) (#28564)
167+
* Fix documents for "custom/public/assets/" (#28465) (#28467)
168+
* MISC
169+
* Fix inperformant query on retrifing review from database. (#28552) (#28562)
170+
* Improve the prompt for "ssh-keygen sign" (#28509) (#28510)
171+
* Update docs for DISABLE_QUERY_AUTH_TOKEN (#28485) (#28488)
172+
* Fix Chinese translation of config cheat sheet[API] (#28472) (#28473)
173+
* Retry SSH key verification with additional CRLF if it failed (#28392) (#28464)
174+
175+
## [1.21.2](https://github.com/go-gitea/gitea/releases/tag/v1.21.2) - 2023-12-12
176+
177+
* SECURITY
178+
* Rebuild with recently released golang version
179+
* Fix missing check (#28406) (#28411)
180+
* Do some missing checks (#28423) (#28432)
181+
* BUGFIXES
182+
* Fix margin in server signed signature verification view (#28379) (#28381)
183+
* Fix object does not exist error when checking citation file (#28314) (#28369)
184+
* Use `filepath` instead of `path` to create SQLite3 database file (#28374) (#28378)
185+
* Fix the runs will not be displayed bug when the main branch have no workflows but other branches have (#28359) (#28365)
186+
* Handle repository.size column being NULL in migration v263 (#28336) (#28363)
187+
* Convert git commit summary to valid UTF8. (#28356) (#28358)
188+
* Fix migration panic due to an empty review comment diff (#28334) (#28362)
189+
* Add `HEAD` support for rpm repo files (#28309) (#28360)
190+
* Fix RPM/Debian signature key creation (#28352) (#28353)
191+
* Keep profile tab when clicking on Language (#28320) (#28331)
192+
* Fix missing issue search index update when changing status (#28325) (#28330)
193+
* Fix wrong link in `protect_branch_name_pattern_desc` (#28313) (#28315)
194+
* Read `previous` info from git blame (#28306) (#28310)
195+
* Ignore "non-existing" errors when getDirectorySize calculates the size (#28276) (#28285)
196+
* Use appSubUrl for OAuth2 callback URL tip (#28266) (#28275)
197+
* Meilisearch: require all query terms to be matched (#28293) (#28296)
198+
* Fix required error for token name (#28267) (#28284)
199+
* Fix issue will be detected as pull request when checking `First-time contributor` (#28237) (#28271)
200+
* Use full width for project boards (#28225) (#28245)
201+
* Increase "version" when update the setting value to a same value as before (#28243) (#28244)
202+
* Also sync DB branches on push if necessary (#28361) (#28403)
203+
* Make gogit Repository.GetBranchNames consistent (#28348) (#28386)
204+
* Recover from panic in cron task (#28409) (#28425)
205+
* Deprecate query string auth tokens (#28390) (#28430)
206+
* ENHANCEMENTS
207+
* Improve doctor cli behavior (#28422) (#28424)
208+
* Fix margin in server signed signature verification view (#28379) (#28381)
209+
* Refactor template empty checks (#28351) (#28354)
210+
* Read `previous` info from git blame (#28306) (#28310)
211+
* Use full width for project boards (#28225) (#28245)
212+
* Enable system users search via the API (#28013) (#28018)
213+
214+
## [1.21.1](https://github.com/go-gitea/gitea/releases/tag/v1.21.1) - 2023-11-26
215+
216+
* SECURITY
217+
* Fix comment permissions (#28213) (#28216)
218+
* BUGFIXES
219+
* Fix delete-orphaned-repos (#28200) (#28202)
220+
* Make CORS work for oauth2 handlers (#28184) (#28185)
221+
* Fix missing buttons (#28179) (#28181)
222+
* Fix no ActionTaskOutput table waring (#28149) (#28152)
223+
* Fix empty action run title (#28113) (#28148)
224+
* Use "is-loading" to avoid duplicate form submit for code comment (#28143) (#28147)
225+
* Fix Matrix and MSTeams nil dereference (#28089) (#28105)
226+
* Fix incorrect pgsql conn builder behavior (#28085) (#28098)
227+
* Fix system config cache expiration timing (#28072) (#28090)
228+
* Restricted users only see repos in orgs which their team was assigned to (#28025) (#28051)
229+
* API
230+
* Fix permissions for Token DELETE endpoint to match GET and POST (#27610) (#28099)
231+
* ENHANCEMENTS
232+
* Do not display search box when there's no packages yet (#28146) (#28159)
233+
* Add missing `packages.cleanup.success` (#28129) (#28132)
234+
* DOCS
235+
* Docs: Replace deprecated IS_TLS_ENABLED mailer setting in email setup (#28205) (#28208)
236+
* Fix the description about the default setting for action in quick start document (#28160) (#28168)
237+
* Add guide page to actions when there's no workflows (#28145) (#28153)
238+
* MISC
239+
* Use full width for PR comparison (#28182) (#28186)
240+
7241
## [1.21.0](https://github.com/go-gitea/gitea/releases/tag/v1.21.0) - 2023-11-14
8242

9243
* BREAKING

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- [How to report issues](#how-to-report-issues)
99
- [Types of issues](#types-of-issues)
1010
- [Discuss your design before the implementation](#discuss-your-design-before-the-implementation)
11+
- [Issue locking](#issue-locking)
1112
- [Building Gitea](#building-gitea)
1213
- [Dependencies](#dependencies)
1314
- [Backend](#backend)
@@ -103,6 +104,13 @@ the goals for the project and tools.
103104

104105
Pull requests should not be the place for architecture discussions.
105106

107+
### Issue locking
108+
109+
Commenting on closed or merged issues/PRs is strongly discouraged.
110+
Such comments will likely be overlooked as some maintainers may not view notifications on closed issues, thinking that the item is resolved.
111+
As such, commenting on closed/merged issues/PRs may be disabled prior to the scheduled auto-locking if a discussion starts or if unrelated comments are posted.
112+
If further discussion is needed, we encourage you to open a new issue instead and we recommend linking to the issue/PR in question for context.
113+
106114
## Building Gitea
107115

108116
See the [development setup instructions](https://docs.gitea.com/development/hacking-on-gitea).

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ Rui Chen <[email protected]> (@chenrui333)
5959
Nanguan Lin <[email protected]> (@lng2020)
6060
kerwin612 <[email protected]> (@kerwin612)
6161
Gary Wang <[email protected]> (@BLumia)
62+
Tim-Niclas Oelschläger <[email protected]> (@zokkis)

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO) list code.gitea.io/gitea/models/m
119119
FOMANTIC_WORK_DIR := web_src/fomantic
120120

121121
WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
122-
WEBPACK_CONFIGS := webpack.config.js
122+
WEBPACK_CONFIGS := webpack.config.js tailwind.config.js
123123
WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css
124124
WEBPACK_DEST_ENTRIES := public/assets/js public/assets/css public/assets/fonts public/assets/img/webpack
125125

@@ -602,8 +602,7 @@ test-mssql\#%: integrations.mssql.test generate-ini-mssql
602602
test-mssql-migration: migrations.mssql.test migrations.individual.mssql.test
603603

604604
.PHONY: playwright
605-
playwright: $(PLAYWRIGHT_DIR)
606-
npm install --no-save @playwright/test
605+
playwright: deps-frontend
607606
npx playwright install $(PLAYWRIGHT_FLAGS)
608607

609608
.PHONY: test-e2e%
@@ -970,7 +969,7 @@ generate-gitignore:
970969

971970
.PHONY: generate-images
972971
generate-images: | node_modules
973-
npm install --no-save --no-package-lock fabric@5 imagemin-zopfli@7
972+
npm install --no-save fabric@6.0.0-beta19 imagemin-zopfli@7
974973
node build/generate-images.js $(TAGS)
975974

976975
.PHONY: generate-manpage

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545
<a href="https://www.tickgit.com/browse?repo=github.com/go-gitea/gitea&branch=main" title="TODOs">
4646
<img src="https://badgen.net/https/api.tickgit.com/badgen/github.com/go-gitea/gitea/main">
4747
</a>
48-
<a href="https://app.bountysource.com/teams/gitea" title="Bountysource">
49-
<img src="https://img.shields.io/bountysource/team/gitea/activity">
50-
</a>
5148
</p>
5249

5350
<p align="center">

README_ZH.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545
<a href="https://www.tickgit.com/browse?repo=github.com/go-gitea/gitea&branch=main" title="TODOs">
4646
<img src="https://badgen.net/https/api.tickgit.com/badgen/github.com/go-gitea/gitea/main">
4747
</a>
48-
<a href="https://app.bountysource.com/teams/gitea" title="Bountysource">
49-
<img src="https://img.shields.io/bountysource/team/gitea/activity">
50-
</a>
5148
</p>
5249

5350
<p align="center">

0 commit comments

Comments
 (0)