Skip to content

Commit 69324fb

Browse files
committed
Merge remote-tracking branch 'refs/remotes/gitea/release/v1.22' into HEAD
2 parents b41628a + 0fb1c1f commit 69324fb

File tree

169 files changed

+1876
-1051
lines changed

Some content is hidden

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

169 files changed

+1876
-1051
lines changed

.air.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ exclude_dir = [
2121
]
2222
exclude_regex = ["_test.go$", "_gen.go$"]
2323
stop_on_error = true
24+
25+
[log]
26+
main_only = true

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitea/issue_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!--
44
1. Please speak English, this is the language all maintainers can speak and write.
55
2. Please ask questions or configuration/deploy problems on our Discord
6-
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
6+
server (https://discord.gg/gitea) or forum (https://forum.gitea.com).
77
3. Please take a moment to check that your issue doesn't already exist.
88
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq)
99
5. Please give all relevant information below for bug reports, because
@@ -21,7 +21,7 @@
2121
- [ ] MySQL
2222
- [ ] MSSQL
2323
- [ ] SQLite
24-
- Can you reproduce the bug at https://try.gitea.io:
24+
- Can you reproduce the bug at https://demo.gitea.com:
2525
- [ ] Yes (provide example URL)
2626
- [ ] No
2727
- Log gist:

.github/ISSUE_TEMPLATE/bug-report.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ body:
3737
label: Can you reproduce the bug on the Gitea demo site?
3838
description: |
3939
If so, please provide a URL in the Description field
40-
URL of Gitea demo: https://try.gitea.io
40+
URL of Gitea demo: https://demo.gitea.com
4141
options:
4242
- "Yes"
4343
- "No"
@@ -74,7 +74,7 @@ body:
7474
attributes:
7575
label: How are you running Gitea?
7676
description: |
77-
Please include information on whether you built Gitea yourself, used one of our downloads, are using https://try.gitea.io or are using some other package
77+
Please include information on whether you built Gitea yourself, used one of our downloads, are using https://demo.gitea.com or are using some other package
7878
Please also tell us how you are running Gitea, e.g. if it is being run from docker, a command-line, systemd etc.
7979
If you are using a package or systemd tell us what distribution you are using
8080
validations:

.github/ISSUE_TEMPLATE/ui.bug-report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ body:
4646
label: Can you reproduce the bug on the Gitea demo site?
4747
description: |
4848
If so, please provide a URL in the Description field
49-
URL of Gitea demo: https://try.gitea.io
49+
URL of Gitea demo: https://demo.gitea.com
5050
options:
5151
- "Yes"
5252
- "No"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ prime/
108108
*_source.tar.bz2
109109
.DS_Store
110110

111+
# nix-direnv generated files
112+
.direnv/
113+
111114
# Make evidence files
112115
/.make_evidence
113116

CHANGELOG.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,79 @@ 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.1](https://github.com/go-gitea/gitea/releases/tag/1.22.1) - 2024-07-04
8+
9+
* SECURITY
10+
* Add replacement module for `mholt/archiver` (#31267) (#31270)
11+
* API
12+
* Fix missing images in editor preview due to wrong links (#31299) (#31393)
13+
* Fix duplicate sub-path for avatars (#31365) (#31368)
14+
* Reduce memory usage for chunked artifact uploads to MinIO (#31325) (#31338)
15+
* Remove sub-path from container registry realm (#31293) (#31300)
16+
* Fix NuGet Package API for $filter with Id equality (#31188) (#31242)
17+
* Add an immutable tarball link to archive download headers for Nix (#31139) (#31145)
18+
* Add missed return after `ctx.ServerError` (#31130) (#31133)
19+
* BUGFIXES
20+
* Fix avatar radius problem on the new issue page (#31506) (#31508)
21+
* Fix overflow menu flickering on mobile (#31484) (#31488)
22+
* Fix poor table column width due to breaking words (#31473) (#31477)
23+
* Support relative paths to videos from Wiki pages (#31061) (#31453)
24+
* Fix new issue/pr avatar (#31419) (#31424)
25+
* Increase max length of org team names from 30 to 255 characters (#31410) (#31421)
26+
* Fix line number width in code preview (#31307) (#31316)
27+
* Optimize runner-tags layout to enhance visual experience (#31258) (#31263)
28+
* Fix overflow on push notification (#31179) (#31238)
29+
* Fix overflow on notifications (#31178) (#31237)
30+
* Fix overflow in issue card (#31203) (#31225)
31+
* Split sanitizer functions and fine-tune some tests (#31192) (#31200)
32+
* use correct l10n string (#31487) (#31490)
33+
* Fix dropzone JS error when attachment is disabled (#31486)
34+
* Fix web notification icon not updated once you read all notifications (#31447) (#31466)
35+
* Switch to "Write" tab when edit comment again (#31445) (#31461)
36+
* Fix the link for .git-blame-ignore-revs bypass (#31432) (#31442)
37+
* Fix the wrong line number in the diff view page when expanded twice. (#31431) (#31440)
38+
* Fix labels and projects menu overflow on issue page (#31435) (#31439)
39+
* Fix Account Linking UpdateMigrationsByType (#31428) (#31434)
40+
* Fix markdown math brackets render problem (#31420) (#31430)
41+
* Fix rendered wiki page link (#31398) (#31407)
42+
* Fix natural sort (#31384) (#31394)
43+
* Allow downloading attachments of draft releases (#31369) (#31380)
44+
* Fix repo graph JS (#31377)
45+
* Fix incorrect localization `explorer.go` (#31348) (#31350)
46+
* Fix hash render end with colon (#31319) (#31346)
47+
* Fix line number widths (#31341) (#31343)
48+
* Fix navbar `+` menu flashing on page load (#31281) (#31342)
49+
* Fix adopt repository has empty object name in database (#31333) (#31335)
50+
* Delete legacy cookie before setting new cookie (#31306) (#31317)
51+
* Fix some URLs whose sub-path is missing (#31289) (#31292)
52+
* Fix admin oauth2 custom URL settings (#31246) (#31247)
53+
* Make pasted "img" tag has the same behavior as markdown image (#31235) (#31243)
54+
* Fix agit checkout command line hint & fix ShowMergeInstructions checking (#31219) (#31222)
55+
* Fix the possible migration failure on 286 with postgres 16 (#31209) (#31218)
56+
* Fix branch order (#31174) (#31193)
57+
* Fix markup preview (#31158) (#31166)
58+
* Fix push multiple branches error with tests (#31151) (#31153)
59+
* Fix API repository object format missed (#31118) (#31132)
60+
* Fix missing memcache import (#31105) (#31109)
61+
* Upgrade `github.com/hashicorp/go-retryablehttp` (#31499)
62+
* Fix double border in system status table (#31363) (#31401)
63+
* Fix bug filtering issues which have no project (#31337) (#31367)
64+
* Fix #31185 try fix lfs download from bitbucket failed (#31201) (#31329)
65+
* Add nix flake for dev shell (#30967) (#31310)
66+
* Fix and clean up `ConfirmModal` (#31283) (#31291)
67+
* Optimize repo-list layout to enhance visual experience (#31272) (#31276)
68+
* fixed the dropdown menu for the top New button to expand to the left (#31273) (#31275)
69+
* Fix Activity Page Contributors dropdown (#31264) (#31269)
70+
* fix: allow actions artifacts storage migration to complete succesfully (#31251) (#31257)
71+
* Make blockquote attention recognize more syntaxes (#31240) (#31250)
72+
* Remove .segment from .project-column (#31204) (#31239)
73+
* Ignore FindRecentlyPushedNewBranches err (#31164) (#31171)
74+
* Use vertical layout for multiple code expander buttons (#31122) (#31152)
75+
* Remove duplicate `ProxyPreserveHost` in Apache httpd doc (#31143) (#31147)
76+
* Improve mobile review ui (#31091) (#31136)
77+
* Fix DashboardRepoList margin (#31121) (#31128)
78+
* Update pip related commands for docker (#31106) (#31111)
79+
780
## [1.22.0](https://github.com/go-gitea/gitea/releases/tag/v1.22.0) - 2024-05-27
881

982
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.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ If your issue has not been reported yet, [open an issue](https://github.com/go-g
7777
and answer the questions so we can understand and reproduce the problematic behavior. \
7878
Please write clear and concise instructions so that we can reproduce the behavior — even if it seems obvious. \
7979
The more detailed and specific you are, the faster we can fix the issue. \
80-
It is really helpful if you can reproduce your problem on a site running on the latest commits, i.e. <https://try.gitea.io>, as perhaps your problem has already been fixed on a current version. \
80+
It is really helpful if you can reproduce your problem on a site running on the latest commits, i.e. <https://demo.gitea.com>, as perhaps your problem has already been fixed on a current version. \
8181
Please follow the guidelines described in [How to Report Bugs Effectively](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html) for your report.
8282

8383
Please be kind, remember that Gitea comes at no cost to you, and you're getting free help.
@@ -362,7 +362,7 @@ If you add a new feature or change an existing aspect of Gitea, the documentatio
362362

363363
## API v1
364364

365-
The API is documented by [swagger](http://try.gitea.io/api/swagger) and is based on [the GitHub API](https://docs.github.com/en/rest).
365+
The API is documented by [swagger](https://gitea.com/api/swagger) and is based on [the GitHub API](https://docs.github.com/en/rest).
366366

367367
### GitHub API compatibility
368368

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
FROM docker.io/library/golang:1.22-alpine3.20 AS build-env
33

44
ARG GOPROXY
5-
ENV GOPROXY ${GOPROXY:-direct}
5+
ENV GOPROXY=${GOPROXY:-direct}
66

77
ARG GITEA_VERSION
88
ARG TAGS="sqlite sqlite_unlock_notify"
9-
ENV TAGS "bindata timetzdata $TAGS"
9+
ENV TAGS="bindata timetzdata $TAGS"
1010
ARG CGO_EXTRA_CFLAGS
1111

1212
# Build deps
@@ -72,8 +72,8 @@ RUN addgroup \
7272
git && \
7373
echo "git:*" | chpasswd -e
7474

75-
ENV USER git
76-
ENV GITEA_CUSTOM /data/gitea
75+
ENV USER=git
76+
ENV GITEA_CUSTOM=/data/gitea
7777

7878
VOLUME ["/data"]
7979

Dockerfile.rootless

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
FROM docker.io/library/golang:1.22-alpine3.20 AS build-env
33

44
ARG GOPROXY
5-
ENV GOPROXY ${GOPROXY:-direct}
5+
ENV GOPROXY=${GOPROXY:-direct}
66

77
ARG GITEA_VERSION
88
ARG TAGS="sqlite sqlite_unlock_notify"
9-
ENV TAGS "bindata timetzdata $TAGS"
9+
ENV TAGS="bindata timetzdata $TAGS"
1010
ARG CGO_EXTRA_CFLAGS
1111

1212
#Build deps
@@ -75,14 +75,14 @@ COPY --from=build-env /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_au
7575

7676
# git:git
7777
USER 1000:1000
78-
ENV GITEA_WORK_DIR /var/lib/gitea
79-
ENV GITEA_CUSTOM /var/lib/gitea/custom
80-
ENV GITEA_TEMP /tmp/gitea
81-
ENV TMPDIR /tmp/gitea
78+
ENV GITEA_WORK_DIR=/var/lib/gitea
79+
ENV GITEA_CUSTOM=/var/lib/gitea/custom
80+
ENV GITEA_TEMP=/tmp/gitea
81+
ENV TMPDIR=/tmp/gitea
8282

8383
# TODO add to docs the ability to define the ini to load (useful to test and revert a config)
84-
ENV GITEA_APP_INI /etc/gitea/app.ini
85-
ENV HOME "/var/lib/gitea/git"
84+
ENV GITEA_APP_INI=/etc/gitea/app.ini
85+
ENV HOME="/var/lib/gitea/git"
8686
VOLUME ["/var/lib/gitea", "/etc/gitea"]
8787
WORKDIR /var/lib/gitea
8888

0 commit comments

Comments
 (0)