Skip to content

Commit b41628a

Browse files
committed
Merge tag 'refs/tags/v1.22.0' into HEAD
This release stands as a monumental milestone in our development journey with a record-breaking incorporation of [1528](https://github.com/go-gitea/gitea/pulls?q=is%3Apr+milestone%3A1.22.0+is%3Amerged) pull requests. It marks the most extensive update in Gitea's history, showcasing a plethora of new features and infrastructure improvements. Noteworthy advancements in this release include the introduction of `HTMX` and `Tailwind`, signaling a strategic shift as we gradually phase out `jquery` and `Fomantic UI`. These changes reflect our commitment to embracing modern technologies and enhancing the user experience. Key highlights of this release encompass significant changes categorized under `BREAKING`, `FEATURES`, `ENHANCEMENTS`, and `PERFORMANCE`, each contributing to a more robust and efficient Gitea platform. * BREAKING * Improve reverse proxy documents and clarify the AppURL guessing behavior (go-gitea#31003) (go-gitea#31020) * Remember log in for a month by default (go-gitea#30150) * Breaking summary for template refactoring (go-gitea#29395) * All custom templates need to follow these changes * Recommend/convert to use case-sensitive collation for MySQL/MSSQL (go-gitea#28662) * Make offline mode as default to not connect external avatar service by default (go-gitea#28548) * Include public repos in the doer's dashboard for issue search (go-gitea#28304) * Use restricted sanitizer for repository description (go-gitea#28141) * Support storage base path as prefix (go-gitea#27827) * Enhanced auth token / remember me (go-gitea#27606) * Rename the default themes to `gitea-light`, `gitea-dark`, `gitea-auto` (go-gitea#27419) * If you didn't see the new themes, please remove the `[ui].THEMES` config option from `app.ini` * Require MySQL 8.0, PostgreSQL 12, MSSQL 2012 (go-gitea#27337) * FEATURES * Allow everyone to read or write a wiki by a repo unit setting (go-gitea#30495) * Use raw Wiki links for non-renderable Wiki files (go-gitea#30273) * Render embedded code preview by permalink in markdown (go-gitea#30234) (go-gitea#30249) * Support repo code search without setting up an indexer (go-gitea#29998) * Support pasting URLs over markdown text (go-gitea#29566) * Allow to change primary email before account activation (go-gitea#29412) * Customizable "Open with" applications for repository clone (go-gitea#29320) * Allow options to disable user deletion from the interface on app.ini (go-gitea#29275) * Extend issue template YAML engine (go-gitea#29274) * Add support for `linguist-detectable` and `linguist-documentation` (go-gitea#29267) * Implement code frequency graph (go-gitea#29191) * Show commit status for releases (go-gitea#29149) * Add user blocking (go-gitea#29028) * Actions Artifacts v4 backend (go-gitea#28965) * Add merge style `fast-forward-only` (go-gitea#28954) * Retarget depending pulls when the parent branch is deleted (go-gitea#28686) * Add global setting on how timestamps should be rendered (go-gitea#28657) * Implement actions badge SVGs (go-gitea#28102) * Add skip ci functionality (go-gitea#28075) * Show latest commit for file (go-gitea#28067) * Allow to sync tags from the admin dashboard (go-gitea#28045) * Add Profile Readme for Organisations (go-gitea#27955) * Implement contributors graph (go-gitea#27882) * Artifact deletion in actions ui (go-gitea#27172) * Add API routes to get runner registration token (go-gitea#27144) * Add support for forking single branch (go-gitea#25821) * Add support for sha256 repositories (go-gitea#23894) * Add admin API route for managing user's badges (go-gitea#23106) * ENHANCEMENTS * Make gitea webhooks openproject compatible (go-gitea#28435) (go-gitea#31081) * Support using label names when changing issue labels (go-gitea#30943) (go-gitea#30958) * Fix various problems around project board view (go-gitea#30696) (go-gitea#30902) * Improve context popup rendering (go-gitea#30824) (go-gitea#30829) * Allow to save empty comment (go-gitea#30706) * Prevent allow/reject reviews on merged/closed PRs (go-gitea#30686) * Initial support for colorblindness-friendly themes (go-gitea#30625) * Some NuGet package enhancements (go-gitea#30280) (go-gitea#30324) * Markup color and font size fixes (go-gitea#30282) (go-gitea#30310) * Show 12 lines in markup code preview (go-gitea#30255) (go-gitea#30257) * Add `[other].SHOW_FOOTER_POWERED_BY` setting to hide `Powered by` (go-gitea#30253) * Pulse page improvements (go-gitea#30149) * Render code tags in commit messages (go-gitea#30146) * Prevent re-review and dismiss review actions on closed and merged PRs (go-gitea#30065) * Cancel previous runs of the same PR automatically (go-gitea#29961) * Drag-and-drop improvements for projects and issue pins (go-gitea#29875) * Add default board to new projects, remove uncategorized pseudo-board (go-gitea#29874) * Prevent layout shift in `<overflow-menu>` items (go-gitea#29831) * Add skip ci support for pull request title (go-gitea#29774) * Add more stats tables (go-gitea#29730) * Update API to return 'source_id' for users (go-gitea#29718) * Determine fuzziness of bleve indexer by keyword length (go-gitea#29706) * Expose fuzzy search for issues/pulls (go-gitea#29701) * Put an edit file button on pull request files to allow a quick operation (go-gitea#29697) * Fix action runner offline label padding (go-gitea#29691) * Update allowed attachment types (go-gitea#29688) * Completely style the webkit autofill (go-gitea#29683) * Highlight archived labels (go-gitea#29680) * Add a warning for disallowed email domains (go-gitea#29658) * Set user's 24h preference from their current OS locale (go-gitea#29651) * Add setting to disable user features when user login type is not plain (go-gitea#29615) * Improve natural sort (go-gitea#29611) * Make wiki default branch name changeable (go-gitea#29603) * Unify search boxes (go-gitea#29530) * Add support for API blob upload of release attachments (go-gitea#29507) * Detect broken git hooks (go-gitea#29494) * Sync branches to DB immediately when handling git hook calling (go-gitea#29493) * Allow options to disable user GPG key configuration from the interface on app.ini (go-gitea#29486) * Allow options to disable user SSH key configuration from the interface on app.ini (go-gitea#29447) * Use relative links for commits, mentions, and issues in markdown (go-gitea#29427) * Add `<overflow-menu>`, rename webcomponents (go-gitea#29400) * Include resource state events in Gitlab downloads (go-gitea#29382) * Properly migrate target branch change GitLab comment (go-gitea#29340) * Recolor dark theme to blue shade (go-gitea#29283) * Partially enable MSSQL case-sensitive collation support (go-gitea#29238) * Auto-update the system status in the admin dashboard (go-gitea#29163) * Integrate alpine `noarch` packages into other architectures index (go-gitea#29137) * Document how the TOC election process works (go-gitea#29135) * Tweak repo header (go-gitea#29134) * Make blockquote border size less aggressive (go-gitea#29124) * Downscale pasted PNG images based on metadata (go-gitea#29123) * Show `View at this point in history` for every commit (go-gitea#29122) * Add support for action artifact serve direct (go-gitea#29120) * Change webhook-type in create-view (go-gitea#29114) * Drop "@" from the email sender to avoid spam filters (go-gitea#29109) * Allow non-admin users to delete review requests (go-gitea#29057) * Improve user search display name (go-gitea#29002) * Include username in email headers (go-gitea#28981) * Show whether a PR is WIP inside popups (go-gitea#28975) * Also match weakly validated ETags (go-gitea#28957) * Support nuspec manifest download for Nuget packages (go-gitea#28921) * Fix hardcoded GitHub icon used as migrated release avatar (go-gitea#28910) * Propagate install_if and provider_priority to APKINDEX (go-gitea#28899) * Add artifacts v4 JWT to job message and accept it (go-gitea#28885) * Enable/disable owner and repo projects independently (go-gitea#28805) * Add non-JS fallback for reaction tooltips (go-gitea#28785) * Add the ability to see open and closed issues at the same time (go-gitea#28757) * Move sign-in labels to be above inputs (go-gitea#28753) * Display the latest sync time for pull mirrors on the repo page (go-gitea#28712) * Show in Web UI if the file is vendored and generated (go-gitea#28620) * Add orphaned topic consistency check (go-gitea#28507) * Add branch protection setting for ignoring stale approvals (go-gitea#28498) * Add option to set language in admin user view (go-gitea#28449) * Fix incorrect run order of action jobs (go-gitea#28367) * Add missing exclusive in advanced label options (go-gitea#28322) * Added instance-level variables (go-gitea#28115) * Add edit option for README.md (go-gitea#28071) * Fix link to `Code` tab on wiki commits (go-gitea#28041) * Allow to set explore page default sort (go-gitea#27951) * Improve PR diff view on mobile (go-gitea#27883) * Properly migrate automatic merge GitLab comments (go-gitea#27873) * Display issue task list on project cards (go-gitea#27865) * Add Index to pull_auto_merge.doer_id (go-gitea#27811) * Fix display member unit in the menu bar if there are no hidden members in public org (go-gitea#27795) * List all Debian package versions in `Packages` (go-gitea#27786) * Allow pull requests Manually Merged option to be used by non-admins (go-gitea#27780) * Only show diff file tree when more than one file changed (go-gitea#27775) * Show placeholder email in privacy popup (go-gitea#27770) * Revamp repo header (go-gitea#27760) * Add `must-change-password` command line parameter (go-gitea#27626) * Unify password changing and invalidate auth tokens (go-gitea#27625) * Add border to file tree 'sub-items' and add padding to 'item-file' (go-gitea#27593) * Add slow SQL query warning (go-gitea#27545) * Pre-register OAuth application for tea (go-gitea#27509) * Differentiate between `push` and `pull` `mirror sync in progress` (go-gitea#27390) * Link to file from its history (go-gitea#27354) * Add a shortcut to user's profile page to admin user details (go-gitea#27299) * Doctor: delete action entries without existing user (go-gitea#27292) * Show total TrackedTime on issue/pull/milestone lists (go-gitea#26672) * Don't show the new pull request button when the page is not compare pull (go-gitea#26431) * Add `Hide/Show all checks` button to commit status check (go-gitea#26284) * Improvements of releases list and tags list (go-gitea#25859) * PERFORMANCE * Fix package list performance (go-gitea#30520) (go-gitea#30616) * Add commit status summary table to reduce query from commit status table (go-gitea#30223) * Refactor markup/csv: don't read all to memory (go-gitea#29760) * Lazy load object format with command line and don't do it in OpenRepository (go-gitea#29712) * Add cache for branch divergence on branch list page (go-gitea#29577) * Do some performance optimization for issues list and view issue/pull (go-gitea#29515) * Cache repository default branch commit status to reduce query on commit status table (go-gitea#29444) * Use `crypto/sha256` (go-gitea#29386) * Some performance optimization on the dashboard and issues page (go-gitea#29010) * Add combined index for issue_user.uid and issue_id (go-gitea#28080) # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCAAdFiEEumb2f9c/cFjXEtMIw7fJG2Mvc4oFAmZUPBEACgkQw7fJG2Mv # c4polxAAjJgg1UISxasNGbX/V4G2P9eeXam9lQ5DYAGS6d+RYdTcYdGSbOZujIGG # cVqoZjYCJm7b3KuL1Jjrf7sIAjPB3E9gO8aJ3r+6PGjRpMwCACPUlCo8QWRPDhcU # /eWleWFs59ZMxHnHT3oLH0TGwbdY4tc35/iKElUIc6sX8WBal0SsYScfBJrRTtS/ # DxBaovmkiG0RUWHK3mK0zHrRW9nJecz/4XFWIHgBjKzvCHlzSYrOjUPvytERlWtO # o7i+1Wsret1JLWoW53L3ZQIXCwBBLYjsan9oq7YgSD0Usl9En3o0+S06+TVNiWMp # MNbOQt2SQsIJPPP83pql+rPbKqAp1dibWXLF70mJrBVpdw/b0VHK2K8fIa5Eiilk # EOR9D8uoOgjvxWVjNI9Gg+lzbT0KoQI90Iexwcloq22MDFPJC3EqirDpwBdkZFJA # 5/6iGvPILD1SVkAzjdMD6Ukc8zWwPVLENwcTCVxr8H2q6/Jbo+29WIlCM+/0a0t3 # 1kN77Yx1So9VFUOqPjHsoO72Wc/Zved1ZDqg9UgqP6L2dH2ns0mh92QM+Pplqi2T # NsJQih4NeZsfDQ7rm0oMcvFqV21a62zZYDi/KqFePRAs5D9K4PU2EmR7jcvf4uax # ZRyHsqDh00/OSYE/CefriyIMshWmTVCDbT/I3/SCXZX1scrKa3k= # =UO/N # -----END PGP SIGNATURE----- # gpg: Signature made Mon, May 27, 2024 3:53:53 PM # gpg: using RSA key BA66F67FD73F7058D712D308C3B7C91B632F738A # gpg: Can't check signature: No public key # Conflicts: # .github/workflows/release-nightly.yml
2 parents da0a35c + 803b0c9 commit b41628a

File tree

218 files changed

+3178
-1071
lines changed

Some content is hidden

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

218 files changed

+3178
-1071
lines changed

CHANGELOG.md

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,172 @@ This changelog goes through 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.22.0](https://github.com/go-gitea/gitea/releases/tag/v1.22.0) - 2024-05-27
8+
9+
This release stands as a monumental milestone in our development journey with a record-breaking incorporation of [1528](https://github.com/go-gitea/gitea/pulls?q=is%3Apr+milestone%3A1.22.0+is%3Amerged) pull requests. It marks the most extensive update in Gitea's history, showcasing a plethora of new features and infrastructure improvements.
10+
11+
Noteworthy advancements in this release include the introduction of `HTMX` and `Tailwind`, signaling a strategic shift as we gradually phase out `jquery` and `Fomantic UI`. These changes reflect our commitment to embracing modern technologies and enhancing the user experience.
12+
13+
Key highlights of this release encompass significant changes categorized under `BREAKING`, `FEATURES`, `ENHANCEMENTS`, and `PERFORMANCE`, each contributing to a more robust and efficient Gitea platform.
14+
15+
* BREAKING
16+
* Improve reverse proxy documents and clarify the AppURL guessing behavior (#31003) (#31020)
17+
* Remember log in for a month by default (#30150)
18+
* Breaking summary for template refactoring (#29395)
19+
* All custom templates need to follow these changes
20+
* Recommend/convert to use case-sensitive collation for MySQL/MSSQL (#28662)
21+
* Make offline mode as default to not connect external avatar service by default (#28548)
22+
* Include public repos in the doer's dashboard for issue search (#28304)
23+
* Use restricted sanitizer for repository description (#28141)
24+
* Support storage base path as prefix (#27827)
25+
* Enhanced auth token / remember me (#27606)
26+
* Rename the default themes to `gitea-light`, `gitea-dark`, `gitea-auto` (#27419)
27+
* If you didn't see the new themes, please remove the `[ui].THEMES` config option from `app.ini`
28+
* Require MySQL 8.0, PostgreSQL 12, MSSQL 2012 (#27337)
29+
* FEATURES
30+
* Allow everyone to read or write a wiki by a repo unit setting (#30495)
31+
* Use raw Wiki links for non-renderable Wiki files (#30273)
32+
* Render embedded code preview by permalink in markdown (#30234) (#30249)
33+
* Support repo code search without setting up an indexer (#29998)
34+
* Support pasting URLs over markdown text (#29566)
35+
* Allow to change primary email before account activation (#29412)
36+
* Customizable "Open with" applications for repository clone (#29320)
37+
* Allow options to disable user deletion from the interface on app.ini (#29275)
38+
* Extend issue template YAML engine (#29274)
39+
* Add support for `linguist-detectable` and `linguist-documentation` (#29267)
40+
* Implement code frequency graph (#29191)
41+
* Show commit status for releases (#29149)
42+
* Add user blocking (#29028)
43+
* Actions Artifacts v4 backend (#28965)
44+
* Add merge style `fast-forward-only` (#28954)
45+
* Retarget depending pulls when the parent branch is deleted (#28686)
46+
* Add global setting on how timestamps should be rendered (#28657)
47+
* Implement actions badge SVGs (#28102)
48+
* Add skip ci functionality (#28075)
49+
* Show latest commit for file (#28067)
50+
* Allow to sync tags from the admin dashboard (#28045)
51+
* Add Profile Readme for Organisations (#27955)
52+
* Implement contributors graph (#27882)
53+
* Artifact deletion in actions ui (#27172)
54+
* Add API routes to get runner registration token (#27144)
55+
* Add support for forking single branch (#25821)
56+
* Add support for sha256 repositories (#23894)
57+
* Add admin API route for managing user's badges (#23106)
58+
* ENHANCEMENTS
59+
* Make gitea webhooks openproject compatible (#28435) (#31081)
60+
* Support using label names when changing issue labels (#30943) (#30958)
61+
* Fix various problems around project board view (#30696) (#30902)
62+
* Improve context popup rendering (#30824) (#30829)
63+
* Allow to save empty comment (#30706)
64+
* Prevent allow/reject reviews on merged/closed PRs (#30686)
65+
* Initial support for colorblindness-friendly themes (#30625)
66+
* Some NuGet package enhancements (#30280) (#30324)
67+
* Markup color and font size fixes (#30282) (#30310)
68+
* Show 12 lines in markup code preview (#30255) (#30257)
69+
* Add `[other].SHOW_FOOTER_POWERED_BY` setting to hide `Powered by` (#30253)
70+
* Pulse page improvements (#30149)
71+
* Render code tags in commit messages (#30146)
72+
* Prevent re-review and dismiss review actions on closed and merged PRs (#30065)
73+
* Cancel previous runs of the same PR automatically (#29961)
74+
* Drag-and-drop improvements for projects and issue pins (#29875)
75+
* Add default board to new projects, remove uncategorized pseudo-board (#29874)
76+
* Prevent layout shift in `<overflow-menu>` items (#29831)
77+
* Add skip ci support for pull request title (#29774)
78+
* Add more stats tables (#29730)
79+
* Update API to return 'source_id' for users (#29718)
80+
* Determine fuzziness of bleve indexer by keyword length (#29706)
81+
* Expose fuzzy search for issues/pulls (#29701)
82+
* Put an edit file button on pull request files to allow a quick operation (#29697)
83+
* Fix action runner offline label padding (#29691)
84+
* Update allowed attachment types (#29688)
85+
* Completely style the webkit autofill (#29683)
86+
* Highlight archived labels (#29680)
87+
* Add a warning for disallowed email domains (#29658)
88+
* Set user's 24h preference from their current OS locale (#29651)
89+
* Add setting to disable user features when user login type is not plain (#29615)
90+
* Improve natural sort (#29611)
91+
* Make wiki default branch name changeable (#29603)
92+
* Unify search boxes (#29530)
93+
* Add support for API blob upload of release attachments (#29507)
94+
* Detect broken git hooks (#29494)
95+
* Sync branches to DB immediately when handling git hook calling (#29493)
96+
* Allow options to disable user GPG key configuration from the interface on app.ini (#29486)
97+
* Allow options to disable user SSH key configuration from the interface on app.ini (#29447)
98+
* Use relative links for commits, mentions, and issues in markdown (#29427)
99+
* Add `<overflow-menu>`, rename webcomponents (#29400)
100+
* Include resource state events in Gitlab downloads (#29382)
101+
* Properly migrate target branch change GitLab comment (#29340)
102+
* Recolor dark theme to blue shade (#29283)
103+
* Partially enable MSSQL case-sensitive collation support (#29238)
104+
* Auto-update the system status in the admin dashboard (#29163)
105+
* Integrate alpine `noarch` packages into other architectures index (#29137)
106+
* Document how the TOC election process works (#29135)
107+
* Tweak repo header (#29134)
108+
* Make blockquote border size less aggressive (#29124)
109+
* Downscale pasted PNG images based on metadata (#29123)
110+
* Show `View at this point in history` for every commit (#29122)
111+
* Add support for action artifact serve direct (#29120)
112+
* Change webhook-type in create-view (#29114)
113+
* Drop "@" from the email sender to avoid spam filters (#29109)
114+
* Allow non-admin users to delete review requests (#29057)
115+
* Improve user search display name (#29002)
116+
* Include username in email headers (#28981)
117+
* Show whether a PR is WIP inside popups (#28975)
118+
* Also match weakly validated ETags (#28957)
119+
* Support nuspec manifest download for Nuget packages (#28921)
120+
* Fix hardcoded GitHub icon used as migrated release avatar (#28910)
121+
* Propagate install_if and provider_priority to APKINDEX (#28899)
122+
* Add artifacts v4 JWT to job message and accept it (#28885)
123+
* Enable/disable owner and repo projects independently (#28805)
124+
* Add non-JS fallback for reaction tooltips (#28785)
125+
* Add the ability to see open and closed issues at the same time (#28757)
126+
* Move sign-in labels to be above inputs (#28753)
127+
* Display the latest sync time for pull mirrors on the repo page (#28712)
128+
* Show in Web UI if the file is vendored and generated (#28620)
129+
* Add orphaned topic consistency check (#28507)
130+
* Add branch protection setting for ignoring stale approvals (#28498)
131+
* Add option to set language in admin user view (#28449)
132+
* Fix incorrect run order of action jobs (#28367)
133+
* Add missing exclusive in advanced label options (#28322)
134+
* Added instance-level variables (#28115)
135+
* Add edit option for README.md (#28071)
136+
* Fix link to `Code` tab on wiki commits (#28041)
137+
* Allow to set explore page default sort (#27951)
138+
* Improve PR diff view on mobile (#27883)
139+
* Properly migrate automatic merge GitLab comments (#27873)
140+
* Display issue task list on project cards (#27865)
141+
* Add Index to pull_auto_merge.doer_id (#27811)
142+
* Fix display member unit in the menu bar if there are no hidden members in public org (#27795)
143+
* List all Debian package versions in `Packages` (#27786)
144+
* Allow pull requests Manually Merged option to be used by non-admins (#27780)
145+
* Only show diff file tree when more than one file changed (#27775)
146+
* Show placeholder email in privacy popup (#27770)
147+
* Revamp repo header (#27760)
148+
* Add `must-change-password` command line parameter (#27626)
149+
* Unify password changing and invalidate auth tokens (#27625)
150+
* Add border to file tree 'sub-items' and add padding to 'item-file' (#27593)
151+
* Add slow SQL query warning (#27545)
152+
* Pre-register OAuth application for tea (#27509)
153+
* Differentiate between `push` and `pull` `mirror sync in progress` (#27390)
154+
* Link to file from its history (#27354)
155+
* Add a shortcut to user's profile page to admin user details (#27299)
156+
* Doctor: delete action entries without existing user (#27292)
157+
* Show total TrackedTime on issue/pull/milestone lists (#26672)
158+
* Don't show the new pull request button when the page is not compare pull (#26431)
159+
* Add `Hide/Show all checks` button to commit status check (#26284)
160+
* Improvements of releases list and tags list (#25859)
161+
* PERFORMANCE
162+
* Fix package list performance (#30520) (#30616)
163+
* Add commit status summary table to reduce query from commit status table (#30223)
164+
* Refactor markup/csv: don't read all to memory (#29760)
165+
* Lazy load object format with command line and don't do it in OpenRepository (#29712)
166+
* Add cache for branch divergence on branch list page (#29577)
167+
* Do some performance optimization for issues list and view issue/pull (#29515)
168+
* Cache repository default branch commit status to reduce query on commit status table (#29444)
169+
* Use `crypto/sha256` (#29386)
170+
* Some performance optimization on the dashboard and issues page (#29010)
171+
* Add combined index for issue_user.uid and issue_id (#28080)
172+
7173
## [1.21.11](https://github.com/go-gitea/gitea/releases/tag/v1.21.11) - 2024-04-07
8174

9175
* SECURITY

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM docker.io/library/golang:1.22-alpine3.19 AS build-env
2+
FROM docker.io/library/golang:1.22-alpine3.20 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -41,7 +41,7 @@ RUN chmod 755 /tmp/local/usr/bin/entrypoint \
4141
/go/src/code.gitea.io/gitea/environment-to-ini
4242
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete
4343

44-
FROM docker.io/library/alpine:3.19
44+
FROM docker.io/library/alpine:3.20
4545
LABEL maintainer="[email protected]"
4646

4747
EXPOSE 22 3000

Dockerfile.rootless

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM docker.io/library/golang:1.22-alpine3.19 AS build-env
2+
FROM docker.io/library/golang:1.22-alpine3.20 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -39,7 +39,7 @@ RUN chmod 755 /tmp/local/usr/local/bin/docker-entrypoint.sh \
3939
/go/src/code.gitea.io/gitea/environment-to-ini
4040
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete
4141

42-
FROM docker.io/library/alpine:3.19
42+
FROM docker.io/library/alpine:3.20
4343
LABEL maintainer="[email protected]"
4444

4545
EXPOSE 2222 3000

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ ifneq ($(GITHUB_REF_TYPE),branch)
8888
GITEA_VERSION ?= $(VERSION)
8989
else
9090
ifneq ($(GITHUB_REF_NAME),)
91-
VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME))
91+
VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME))-nightly
9292
else
9393
VERSION ?= main
9494
endif

cmd/hook.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,7 @@ Gitea or set your environment appropriately.`, "")
220220
}
221221
}
222222

223-
supportProcReceive := false
224-
if git.CheckGitVersionAtLeast("2.29") == nil {
225-
supportProcReceive = true
226-
}
223+
supportProcReceive := git.DefaultFeatures().SupportProcReceive
227224

228225
for scanner.Scan() {
229226
// TODO: support news feeds for wiki
@@ -341,6 +338,7 @@ Gitea or set your environment appropriately.`, "")
341338
isWiki, _ := strconv.ParseBool(os.Getenv(repo_module.EnvRepoIsWiki))
342339
repoName := os.Getenv(repo_module.EnvRepoName)
343340
pusherID, _ := strconv.ParseInt(os.Getenv(repo_module.EnvPusherID), 10, 64)
341+
prID, _ := strconv.ParseInt(os.Getenv(repo_module.EnvPRID), 10, 64)
344342
pusherName := os.Getenv(repo_module.EnvPusherName)
345343

346344
hookOptions := private.HookOptions{
@@ -350,6 +348,8 @@ Gitea or set your environment appropriately.`, "")
350348
GitObjectDirectory: os.Getenv(private.GitObjectDirectory),
351349
GitQuarantinePath: os.Getenv(private.GitQuarantinePath),
352350
GitPushOptions: pushOptions(),
351+
PullRequestID: prID,
352+
PushTrigger: repo_module.PushTrigger(os.Getenv(repo_module.EnvPushTrigger)),
353353
}
354354
oldCommitIDs := make([]string, hookBatchSize)
355355
newCommitIDs := make([]string, hookBatchSize)
@@ -497,7 +497,7 @@ Gitea or set your environment appropriately.`, "")
497497
return nil
498498
}
499499

500-
if git.CheckGitVersionAtLeast("2.29") != nil {
500+
if !git.DefaultFeatures().SupportProcReceive {
501501
return fail(ctx, "No proc-receive support", "current git version doesn't support proc-receive.")
502502
}
503503

cmd/migrate_storage.go

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var CmdMigrateStorage = &cli.Command{
3434
Name: "type",
3535
Aliases: []string{"t"},
3636
Value: "",
37-
Usage: "Type of stored files to copy. Allowed types: 'attachments', 'lfs', 'avatars', 'repo-avatars', 'repo-archivers', 'packages', 'actions-log'",
37+
Usage: "Type of stored files to copy. Allowed types: 'attachments', 'lfs', 'avatars', 'repo-avatars', 'repo-archivers', 'packages', 'actions-log', 'actions-artifacts",
3838
},
3939
&cli.StringFlag{
4040
Name: "storage",
@@ -160,6 +160,13 @@ func migrateActionsLog(ctx context.Context, dstStorage storage.ObjectStorage) er
160160
})
161161
}
162162

163+
func migrateActionsArtifacts(ctx context.Context, dstStorage storage.ObjectStorage) error {
164+
return db.Iterate(ctx, nil, func(ctx context.Context, artifact *actions_model.ActionArtifact) error {
165+
_, err := storage.Copy(dstStorage, artifact.ArtifactPath, storage.ActionsArtifacts, artifact.ArtifactPath)
166+
return err
167+
})
168+
}
169+
163170
func runMigrateStorage(ctx *cli.Context) error {
164171
stdCtx, cancel := installSignals()
165172
defer cancel()
@@ -223,13 +230,14 @@ func runMigrateStorage(ctx *cli.Context) error {
223230
}
224231

225232
migratedMethods := map[string]func(context.Context, storage.ObjectStorage) error{
226-
"attachments": migrateAttachments,
227-
"lfs": migrateLFS,
228-
"avatars": migrateAvatars,
229-
"repo-avatars": migrateRepoAvatars,
230-
"repo-archivers": migrateRepoArchivers,
231-
"packages": migratePackages,
232-
"actions-log": migrateActionsLog,
233+
"attachments": migrateAttachments,
234+
"lfs": migrateLFS,
235+
"avatars": migrateAvatars,
236+
"repo-avatars": migrateRepoAvatars,
237+
"repo-archivers": migrateRepoArchivers,
238+
"packages": migratePackages,
239+
"actions-log": migrateActionsLog,
240+
"actions-artifacts": migrateActionsArtifacts,
233241
}
234242

235243
tp := strings.ToLower(ctx.String("type"))

cmd/serv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func runServ(c *cli.Context) error {
178178
}
179179

180180
if len(words) < 2 {
181-
if git.CheckGitVersionAtLeast("2.29") == nil {
181+
if git.DefaultFeatures().SupportProcReceive {
182182
// for AGit Flow
183183
if cmd == "ssh_info" {
184184
fmt.Print(`{"type":"gitea","version":1}`)

custom/conf/app.example.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,6 +2035,17 @@ LEVEL = Info
20352035
;; or only create new users if UPDATE_EXISTING is set to false
20362036
;UPDATE_EXISTING = true
20372037

2038+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2039+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2040+
;; Cleanup expired actions assets
2041+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2042+
;[cron.cleanup_actions]
2043+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2044+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2045+
;ENABLED = true
2046+
;RUN_AT_START = true
2047+
;SCHEDULE = @midnight
2048+
20382049
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
20392050
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
20402051
;; Clean-up deleted branches

docs/content/administration/config-cheat-sheet.en-us.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,12 +974,20 @@ Default templates for project boards:
974974
- `SCHEDULE`: **@midnight** : Interval as a duration between each synchronization, it will always attempt synchronization when the instance starts.
975975
- `UPDATE_EXISTING`: **true**: Create new users, update existing user data and disable users that are not in external source anymore (default) or only create new users if UPDATE_EXISTING is set to false.
976976

977-
## Cron - Cleanup Expired Actions Assets (`cron.cleanup_actions`)
977+
#### Cron - Cleanup Expired Actions Assets (`cron.cleanup_actions`)
978978

979979
- `ENABLED`: **true**: Enable cleanup expired actions assets job.
980980
- `RUN_AT_START`: **true**: Run job at start time (if ENABLED).
981981
- `SCHEDULE`: **@midnight** : Cron syntax for the job.
982982

983+
#### Cron - Cleanup Deleted Branches (`cron.deleted_branches_cleanup`)
984+
985+
- `ENABLED`: **true**: Enable deleted branches cleanup.
986+
- `RUN_AT_START`: **true**: Run job at start time (if ENABLED).
987+
- `NOTICE_ON_SUCCESS`: **false**: Set to true to log a success message.
988+
- `SCHEDULE`: **@midnight**: Cron syntax for scheduling deleted branches cleanup.
989+
- `OLDER_THAN`: **24h**: Branches deleted OLDER_THAN ago will be cleaned up.
990+
983991
### Extended cron tasks (not enabled by default)
984992

985993
#### Cron - Garbage collect all repositories (`cron.git_gc_repos`)

0 commit comments

Comments
 (0)