-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Swift files can be passed either as file or as form value #34068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift files can be passed either as file or as form value #34068
Conversation
Alternative fix with minimal changes: @@ -304,10 +304,18 @@ func UploadPackageFile(ctx *context.Context) {
packageVersion := v.Core().String()
- file, _, err := ctx.Req.FormFile("source-archive")
+ var file io.ReadCloser
+ multipartFile, _, err := ctx.Req.FormFile("source-archive")
if err != nil {
- apiError(ctx, http.StatusBadRequest, err)
- return
+ content := ctx.Req.FormValue("source-archive")
+ if content != "" {
+ file = io.NopCloser(strings.NewReader(content))
+ } else {
+ apiError(ctx, http.StatusBadRequest, err)
+ return
+ }
+ } else {
+ file = multipartFile
}
defer file.Close() + tests |
hi @wgr1984, would you be interested in continuing to complete the pr? |
sure, will finish it once i find a minute to get local build running, in
order to confirm impl. and update test (in case needed)
Am Do., 3. Apr. 2025 um 12:04 Uhr schrieb hiifong ***@***.***
…:
hi @wgr1984 <https://github.com/wgr1984>, would you be interested in
continuing to complete the pr?
—
Reply to this email directly, view it on GitHub
<#34068 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADEBZPEB6PIYRVWM734MXD2XUBRZAVCNFSM6AAAAAB2B5CUJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZVGE3DQNZYGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: hiifong]*hiifong* left a comment (go-gitea/gitea#34068)
<#34068 (comment)>
hi @wgr1984 <https://github.com/wgr1984>, would you be interested in
continuing to complete the pr?
—
Reply to this email directly, view it on GitHub
<#34068 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADEBZPEB6PIYRVWM734MXD2XUBRZAVCNFSM6AAAAAB2B5CUJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZVGE3DQNZYGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
a2a92fb
to
6ded601
Compare
CI failure seems related. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI fails, need to figure out the root problem and fix.
I know why because the test cases rely on each other. To test that went
need to get the. Independent, but it's a bigger change ...
wxiaoguang ***@***.***> schrieb am Mo. 14. Apr. 2025 um 02:18:
… ***@***.**** requested changes on this pull request.
CI fails, need to figure out the root problem and fix.
—
Reply to this email directly, view it on GitHub
<#34068 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADEBZIP6ZS4Q3KTGOEZBT32ZL5F7AVCNFSM6AAAAAB2B5CUJCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDONRSHA4TQMRXGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Just move the upload test to the bottom or remove the package after uploading. |
more fixing the symptom than the issue but sure, will do |
Strange, it doesn't explain why only MySQL fails, other databases succeed ..... anyway we need to make the CI pass to merge ....... |
9892bb1
to
be2725d
Compare
OK, I fixed the tests. Will merge. |
…4068) Fix go-gitea#33990 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* giteaofficial/main: Add API routes to lock and unlock issues (go-gitea#34165) Make ROOT_URL support using request Host header (go-gitea#32564) Valid email address should only start with alphanumeric (go-gitea#28174) Fix notify watch failure when the content is too long (go-gitea#34233) Add "--fullname" arg to gitea admin user create (go-gitea#34241) Fix various UI problems (go-gitea#34243) markup: improve code block readability and isolate copy button (go-gitea#34009) Don't assume the default wiki branch is master in the wiki API (go-gitea#34244) [skip ci] Updated translations via Crowdin Optimize the calling code of queryElems (go-gitea#34235) Actions Runner rest api (go-gitea#33873) Fix some trivial problems (go-gitea#34237) Swift files can be passed either as file or as form value (go-gitea#34068) # Conflicts: # templates/repo/wiki/revision.tmpl
…4068) Fix go-gitea#33990 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit 2683adf)
* SECURITY * Fix a bug when uploading file via lfs ssh command (go-gitea#34408) (go-gitea#34411) * Update net package (go-gitea#34228) (go-gitea#34232) * BUGFIXES * Fix releases sidebar navigation link (go-gitea#34436) go-gitea#34439 * Fix bug webhook milestone is not right. (go-gitea#34419) go-gitea#34429 * Fix two missed null value checks on the wiki page. (go-gitea#34205) (go-gitea#34215) * Swift files can be passed either as file or as form value (go-gitea#34068) (go-gitea#34236) * Fix bug when API get pull changed files for deleted head repository (go-gitea#34333) (go-gitea#34368) * Upgrade github v61 -> v71 to fix migrating bug (go-gitea#34389) * Fix bug when visiting comparation page (go-gitea#34334) (go-gitea#34364) * Fix wrong review requests when updating the pull request (go-gitea#34286) (go-gitea#34304) * Fix github migration error when using multiple tokens (go-gitea#34144) (go-gitea#34302) * Explicitly not update indexes when sync database schemas (go-gitea#34281) (go-gitea#34295) * Fix panic when comment is nil (go-gitea#34257) (go-gitea#34277) * Fix project board links to related Pull Requests (go-gitea#34213) (go-gitea#34222) * Don't assume the default wiki branch is master in the wiki API (go-gitea#34244) (go-gitea#34245) * DOCUMENTATION * Update token creation API swagger documentation (go-gitea#34288) (go-gitea#34296) * MISC * Fix CI Build (go-gitea#34315) * Add riscv64 support (go-gitea#34199) (go-gitea#34204) * Bump go version in go.mod (go-gitea#34160) * remove hardcoded 'code' string in clone_panel.tmpl (go-gitea#34153) (go-gitea#34158)
* SECURITY * Fix a bug when uploading file via lfs ssh command (go-gitea#34408) (go-gitea#34411) * Update net package (go-gitea#34228) (go-gitea#34232) * BUGFIXES * Fix releases sidebar navigation link (go-gitea#34436) go-gitea#34439 * Fix bug webhook milestone is not right. (go-gitea#34419) go-gitea#34429 * Fix two missed null value checks on the wiki page. (go-gitea#34205) (go-gitea#34215) * Swift files can be passed either as file or as form value (go-gitea#34068) (go-gitea#34236) * Fix bug when API get pull changed files for deleted head repository (go-gitea#34333) (go-gitea#34368) * Upgrade github v61 -> v71 to fix migrating bug (go-gitea#34389) * Fix bug when visiting comparation page (go-gitea#34334) (go-gitea#34364) * Fix wrong review requests when updating the pull request (go-gitea#34286) (go-gitea#34304) * Fix github migration error when using multiple tokens (go-gitea#34144) (go-gitea#34302) * Explicitly not update indexes when sync database schemas (go-gitea#34281) (go-gitea#34295) * Fix panic when comment is nil (go-gitea#34257) (go-gitea#34277) * Fix project board links to related Pull Requests (go-gitea#34213) (go-gitea#34222) * Don't assume the default wiki branch is master in the wiki API (go-gitea#34244) (go-gitea#34245) * DOCUMENTATION * Update token creation API swagger documentation (go-gitea#34288) (go-gitea#34296) * MISC * Fix CI Build (go-gitea#34315) * Add riscv64 support (go-gitea#34199) (go-gitea#34204) * Bump go version in go.mod (go-gitea#34160) * remove hardcoded 'code' string in clone_panel.tmpl (go-gitea#34153) (go-gitea#34158)
* SECURITY * Fix a bug when uploading file via lfs ssh command (go-gitea#34408) (go-gitea#34411) * Update net package (go-gitea#34228) (go-gitea#34232) * BUGFIXES * Fix releases sidebar navigation link (go-gitea#34436) go-gitea#34439 * Fix bug webhook milestone is not right. (go-gitea#34419) go-gitea#34429 * Fix two missed null value checks on the wiki page. (go-gitea#34205) (go-gitea#34215) * Swift files can be passed either as file or as form value (go-gitea#34068) (go-gitea#34236) * Fix bug when API get pull changed files for deleted head repository (go-gitea#34333) (go-gitea#34368) * Upgrade github v61 -> v71 to fix migrating bug (go-gitea#34389) * Fix bug when visiting comparation page (go-gitea#34334) (go-gitea#34364) * Fix wrong review requests when updating the pull request (go-gitea#34286) (go-gitea#34304) * Fix github migration error when using multiple tokens (go-gitea#34144) (go-gitea#34302) * Explicitly not update indexes when sync database schemas (go-gitea#34281) (go-gitea#34295) * Fix panic when comment is nil (go-gitea#34257) (go-gitea#34277) * Fix project board links to related Pull Requests (go-gitea#34213) (go-gitea#34222) * Don't assume the default wiki branch is master in the wiki API (go-gitea#34244) (go-gitea#34245) * DOCUMENTATION * Update token creation API swagger documentation (go-gitea#34288) (go-gitea#34296) * MISC * Fix CI Build (go-gitea#34315) * Add riscv64 support (go-gitea#34199) (go-gitea#34204) * Bump go version in go.mod (go-gitea#34160) * remove hardcoded 'code' string in clone_panel.tmpl (go-gitea#34153) (go-gitea#34158)
* SECURITY * Fix a bug when uploading file via lfs ssh command (go-gitea#34408) (go-gitea#34411) * Update net package (go-gitea#34228) (go-gitea#34232) * BUGFIXES * Fix releases sidebar navigation link (go-gitea#34436) go-gitea#34439 * Fix bug webhook milestone is not right. (go-gitea#34419) go-gitea#34429 * Fix two missed null value checks on the wiki page. (go-gitea#34205) (go-gitea#34215) * Swift files can be passed either as file or as form value (go-gitea#34068) (go-gitea#34236) * Fix bug when API get pull changed files for deleted head repository (go-gitea#34333) (go-gitea#34368) * Upgrade github v61 -> v71 to fix migrating bug (go-gitea#34389) * Fix bug when visiting comparation page (go-gitea#34334) (go-gitea#34364) * Fix wrong review requests when updating the pull request (go-gitea#34286) (go-gitea#34304) * Fix github migration error when using multiple tokens (go-gitea#34144) (go-gitea#34302) * Explicitly not update indexes when sync database schemas (go-gitea#34281) (go-gitea#34295) * Fix panic when comment is nil (go-gitea#34257) (go-gitea#34277) * Fix project board links to related Pull Requests (go-gitea#34213) (go-gitea#34222) * Don't assume the default wiki branch is master in the wiki API (go-gitea#34244) (go-gitea#34245) * DOCUMENTATION * Update token creation API swagger documentation (go-gitea#34288) (go-gitea#34296) * MISC * Fix CI Build (go-gitea#34315) * Add riscv64 support (go-gitea#34199) (go-gitea#34204) * Bump go version in go.mod (go-gitea#34160) * remove hardcoded 'code' string in clone_panel.tmpl (go-gitea#34153) (go-gitea#34158)
* SECURITY * Fix a bug when uploading file via lfs ssh command (go-gitea#34408) (go-gitea#34411) * Update net package (go-gitea#34228) (go-gitea#34232) * BUGFIXES * Fix releases sidebar navigation link (go-gitea#34436) go-gitea#34439 * Fix bug webhook milestone is not right. (go-gitea#34419) go-gitea#34429 * Fix two missed null value checks on the wiki page. (go-gitea#34205) (go-gitea#34215) * Swift files can be passed either as file or as form value (go-gitea#34068) (go-gitea#34236) * Fix bug when API get pull changed files for deleted head repository (go-gitea#34333) (go-gitea#34368) * Upgrade github v61 -> v71 to fix migrating bug (go-gitea#34389) * Fix bug when visiting comparation page (go-gitea#34334) (go-gitea#34364) * Fix wrong review requests when updating the pull request (go-gitea#34286) (go-gitea#34304) * Fix github migration error when using multiple tokens (go-gitea#34144) (go-gitea#34302) * Explicitly not update indexes when sync database schemas (go-gitea#34281) (go-gitea#34295) * Fix panic when comment is nil (go-gitea#34257) (go-gitea#34277) * Fix project board links to related Pull Requests (go-gitea#34213) (go-gitea#34222) * Don't assume the default wiki branch is master in the wiki API (go-gitea#34244) (go-gitea#34245) * DOCUMENTATION * Update token creation API swagger documentation (go-gitea#34288) (go-gitea#34296) * MISC * Fix CI Build (go-gitea#34315) * Add riscv64 support (go-gitea#34199) (go-gitea#34204) * Bump go version in go.mod (go-gitea#34160) * remove hardcoded 'code' string in clone_panel.tmpl (go-gitea#34153) (go-gitea#34158)
* Backport 1.23 (go-gitea#32868) Co-authored-by: delvh <dev.lh@web.de> * Add 1.23.0-rc0 changelog (go-gitea#32863) Notice: some of pull requests haven't been added to the changelog - Which have been backported to v1.22 - https://github.com/go-gitea/gitea/pulls?q=sort%3Aupdated-desc+is%3Apr+milestone%3A1.23.0+is%3Amerged+label%3Abackport%2Fv1.22 - Which have skip-changelog - https://github.com/go-gitea/gitea/pulls?q=sort%3Aupdated-desc+is%3Apr+milestone%3A1.23.0+is%3Amerged+-label%3Abackport%2Fv1.22+label%3Askip-changelog - Build and Testing - https://github.com/go-gitea/gitea/pulls?q=sort%3Aupdated-desc+is%3Apr+milestone%3A1.23.0+is%3Amerged+label%3Abackport%2Fv1.22+label%3Atype%2Ftesting - https://github.com/go-gitea/gitea/pulls?q=sort%3Aupdated-desc+is%3Apr+milestone%3A1.23.0+is%3Amerged+label%3Abackport%2Fv1.22+label%3Atopic%2Fbuild - No `type` label marked may be missed, I need to check one by one, but I believe those are not too many. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix Arch package metadata introduced incorrect field (go-gitea#32881) (go-gitea#32882) Backport go-gitea#32881 by ExplodingDragon Incorrect content was introduced while generating the index, which has now been removed, and the missing fields have been added. Co-authored-by: Exploding Dragon <explodingfkl@gmail.com> * bump x/net (go-gitea#32896) (go-gitea#32899) backport go-gitea#32896 to 1.23 * Add more load functions to make sure the reference object loaded (go-gitea#32901) (go-gitea#32912) Backport go-gitea#32901 by @lunny Fix go-gitea#32897 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Relax the version checking for Arch packages (go-gitea#32908) (go-gitea#32913) Backport go-gitea#32908 by ExplodingDragon It is mentioned in https://man.archlinux.org/man/PKGBUILD.5: 'The variable is not allowed to contain colons, forward slashes, hyphens, or whitespace.' `_` is also an allowed character, and some software in the Arch Linux AUR uses this naming convention. Co-authored-by: Exploding Dragon <explodingfkl@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Deprecated gopid in log (go-gitea#32932) * Update i18n.go - Language Picker (go-gitea#32933) (go-gitea#32935) * Fix locale (go-gitea#32937) (go-gitea#32942) * Use primary as button color (go-gitea#32949) (go-gitea#32950) Backport go-gitea#32949 by wxiaoguang * Fix go-gitea#32871 * Fix go-gitea#32948 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * fix trailing comma not matched in the case of alphanumeric issue (go-gitea#32945) (go-gitea#32959) Backport go-gitea#32945 by @katsusan Fix go-gitea#32428. Patch the regex to match `,`besides `.` `"` `'` `:` and space. Co-authored-by: katsu <evergonuaa@gmail.com> * Use Alpine 3.21 for the docker images (go-gitea#32924) (go-gitea#32951) * Fix repo avatar conflict (go-gitea#32958) (go-gitea#32960) Backport go-gitea#32958 by wxiaoguang Continue even if the avatar deleting fails Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix commit range paging (go-gitea#32944) (go-gitea#32962) Backport go-gitea#32944 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix outdated tmpl code (go-gitea#32953) (go-gitea#32961) Backport go-gitea#32953 by wxiaoguang Some PRs were before tmpl ctx refactoring and used outdated code Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (go-gitea#32946) (go-gitea#32964) Backport go-gitea#32946 by wxiaoguang Fix go-gitea#23703 When Gitea starts, it reads GITEA_RUNNER_REGISTRATION_TOKEN or GITEA_RUNNER_REGISTRATION_TOKEN_FILE to add registration token. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * fix textarea newline handle (go-gitea#32966) (go-gitea#32977) Backport go-gitea#32966 by metiftikci Co-authored-by: metiftikci <metiftikci@hotmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix maven pom inheritance (go-gitea#32943) (go-gitea#32976) Backport go-gitea#32943 by wxiaoguang Fix go-gitea#30568 At the moment, here only `GroupID` (no `Version`) is parsed & used Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix Azure blob object `Seek` (go-gitea#32974) (go-gitea#32975) Backport go-gitea#32974 by Zettat123 Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * demilestone should not include milestone (go-gitea#32923) (go-gitea#32979) Backport go-gitea#32923 by @lunny Fix go-gitea#32887 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Do not render truncated links in markdown (go-gitea#32980) (go-gitea#32983) Backport go-gitea#32980 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Support org labels when adding labels by label names (go-gitea#32988) (go-gitea#32996) Backport go-gitea#32988 by @Zettat123 Fix go-gitea#32891 Co-authored-by: Zettat123 <zettat123@gmail.com> * Support for email addresses containing uppercase characters when activating user account (go-gitea#32998) (go-gitea#33001) Backport go-gitea#32998 by Zettat123 Fix go-gitea#32807 Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix Agit pull request permission check (go-gitea#32999) (go-gitea#33005) Backport go-gitea#32999 by @a1012112796 user with read permission should also can create agit flow pull request. looks this logic was broken in go-gitea#31033 this pull request try fix it and add test code. Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: a1012112796 <1012112796@qq.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * fix scoped label ui when contains emoji (go-gitea#33007) (go-gitea#33014) Backport go-gitea#33007 by metiftikci Co-authored-by: metiftikci <metiftikci@hotmail.com> * Fix bug on activities (go-gitea#33008) (go-gitea#33016) Backport go-gitea#33008 by @lunny A repository with no issue will display a random number on activities page. This is caused by wrong usage of `And` and `Or`.  Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix review code comment avatar alignment (go-gitea#33031) (go-gitea#33032) Backport go-gitea#33031 by henrygoodman Fixes go-gitea#33017 Co-authored-by: Henry Goodman <79623665+henrygoodman@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * fix toggle commit body button ui when latest commit message is long (go-gitea#32997) (go-gitea#33034) backport go-gitea#32997 and go-gitea#33002 * Fix templating in pull request comparison (go-gitea#33025) (go-gitea#33038) Backport go-gitea#33025 by TheFox0x7 Adds test for expected behavior Closes: go-gitea#33013 --- Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> * Refactor testfixtures (go-gitea#33028) Partial backport of go-gitea#33024 * Fix bug automerge cannot be chosed when there is only 1 merge style (go-gitea#33040) (go-gitea#33043) Backport go-gitea#33040 by @lunny This is a quick bug fix. Even if there is only 1 merge style, the dropdown menu will still be displayed to allow users to choose automerge. Fix go-gitea#32448 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * use `-s -w` ldflags for release artifacts (go-gitea#33041) (go-gitea#33042) Backport go-gitea#33041 by @techknowlogick fix go-gitea#33030 Co-authored-by: techknowlogick <techknowlogick@gitea.com> * Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (go-gitea#32987) (go-gitea#33046) * Remove aws go sdk package dependency (go-gitea#33029) (go-gitea#33047) Backport go-gitea#33029 by lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix settings not being loaded at CLI (go-gitea#26402) (go-gitea#33048) Backport go-gitea#26402 by cassiozareck Closes go-gitea#25898 Signed-off-by: cassiozareck <cassiomilczareck@gmail.com> Co-authored-by: cassio zareck <121526696+cassiozareck@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix issue comment number (go-gitea#30556) (go-gitea#33055) Backport go-gitea#30556 by @lunny Fix go-gitea#22419 Only comments with types `CommentTypeComment` and `CommentTypeReview` will be counted as conversations of the pull request. `CommentTypeReview` was missed in the previous implementation. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix duplicate co-author in squashed merge commit messages (go-gitea#33020) (go-gitea#33054) * Make issue suggestion work for new PR page (go-gitea#33035) (go-gitea#33056) Backport go-gitea#33035 by wxiaoguang Fix go-gitea#33026 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Refactor maven package registry (go-gitea#33049) (go-gitea#33057) Backport go-gitea#33049 * Use project's redirect url instead of composing url (go-gitea#33058) (go-gitea#33064) Backport go-gitea#33058 by lunny Fix go-gitea#32992 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * feat(action): issue change title notifications (go-gitea#33050) (go-gitea#33065) Backport go-gitea#33050 by appleboy action file as below: ```yaml name: Semantic Pull Request on: pull_request_target: types: [edited] ``` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Inherit submodules from template repository content (go-gitea#16237) (go-gitea#33068) Backport go-gitea#16237 (it more likely a bug fix) Co-authored-by: Steffen Schröter <steffen@vexar.de> * Try to fix ACME directory problem (go-gitea#33072) (go-gitea#33077) Backport go-gitea#33072 by wxiaoguang Haven't really confirmed, but I think it might fix go-gitea#32191 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix broken forms (go-gitea#33082) * Fix bleve fuzziness search (go-gitea#33078) (go-gitea#33087) * Fix line-number and scroll bugs (go-gitea#33094) (go-gitea#33095) Partially backport go-gitea#33094 Fix the scroll bug in issue/pr view page. Fix a JS error when line number exceeds the max * Fix empty git repo handling logic and fix mobile view (go-gitea#33101) (go-gitea#33102) Backport go-gitea#33101 and UI fix from main (including go-gitea#33108) * Fix package error handling and npm meta and empty repo guide (go-gitea#33112) * Add missing transaction when set merge (go-gitea#33113) backport from go-gitea#33079 `SetMerged` should be in a database transaction otherwise it's possible to have dirty data. * fix empty repo updated time (go-gitea#33120) (go-gitea#33124) Backport go-gitea#33120 by changchaishi fixes go-gitea#33119 Co-authored-by: Chai-Shi <changchaishi@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (go-gitea#33106) (go-gitea#33128) Backport go-gitea#33106 by @lunny This PR fixes a performance problem when reviewing a pull request in a big instance which have many records in the `review` table. Traditionally, we should add more indexes in that table. But since dismissed reviews of 1 pull request will not be too many as expected in a common repository. Filtering reviews in the memory should be more quick . Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix `git remote` error check, fix dependencies, fix js error (go-gitea#33129) (go-gitea#33133) And update some dependencies to fix bugs. Backport go-gitea#33129, go-gitea#33136 Fix go-gitea#32889 Fix go-gitea#33141 Fix go-gitea#33139 --------- Co-authored-by: yp05327 <576951401@qq.com> * Update changelog for v1.23.0 (go-gitea#33130) * Fix fuzz test (go-gitea#33156) (go-gitea#33158) Backport go-gitea#33156 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix pam auth test regression (go-gitea#33169) (go-gitea#33174) Backport go-gitea#33169 by TheFox0x7 fixes: go-gitea#33168 Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> * Fix assignee list overlapping in Issue sidebar (go-gitea#33176) (go-gitea#33181) Backport go-gitea#33176 by wxiaoguang Fix go-gitea#33170 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Move repo size to sidebar (go-gitea#33155) (go-gitea#33182) Backport go-gitea#33155 by @yp05327  Co-authored-by: yp05327 <576951401@qq.com> * Fix ACME panic (go-gitea#33178) (go-gitea#33186) Backport go-gitea#33178 by @wxiaoguang Fix go-gitea#33177, Manually tested: ```` 1.7364311850484018e+09 info maintenance started background certificate maintenance {"cache": "0x1400ca64180"} 1.736431185054049e+09 info obtain acquiring lock {"identifier": "example.com"} 1.736431185058073e+09 info obtain lock acquired {"identifier": "example.com"} 1.736431185058133e+09 info obtain obtaining certificate {"identifier": "example.com"} ```` Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix branch dropdown not display ref name (go-gitea#33159) (go-gitea#33183) Backport go-gitea#33159 by @yp05327 Before:  After:  Co-authored-by: yp05327 <576951401@qq.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix raw file API ref handling (go-gitea#33172) (go-gitea#33189) Backport go-gitea#33172 by wxiaoguang Fix go-gitea#33164 and add more tests Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Use updated path to s6-svscan after alpine upgrade (go-gitea#33185) (go-gitea#33188) Backport go-gitea#33185 by @techknowlogick Fix go-gitea#33163 Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix sync fork for consistency (go-gitea#33147) (go-gitea#33192) Backport go-gitea#33147 by changchaishi Fixes go-gitea#33145 An integration test could be added. --------- Co-authored-by: Chai-Shi <changchaishi@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix editor markdown not incrementing in a numbered list (go-gitea#33187) (go-gitea#33193) Backport go-gitea#33187 (no conflict) Co-authored-by: Harry Vince <47283812+harryvince@users.noreply.github.com> * Change log for 1.23.1 (go-gitea#33191) * fix(cache): cache test triggered by non memory cache (go-gitea#33220) (go-gitea#33221) Backport go-gitea#33220 by TheFox0x7 Change SlowCacheThreshold to 30 milliseconds so it doesn't trigger on non memory cache Closes: go-gitea#33190 Closes: go-gitea#32657 Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> * Fix mirror bug (go-gitea#33224) (go-gitea#33225) Backport go-gitea#33224 by lunny Fix go-gitea#33200 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix upload file form (go-gitea#33230) (go-gitea#33233) Backport go-gitea#33230 by @wxiaoguang Fix go-gitea#33228 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix tag route and empty repo (go-gitea#33253) * Fix missing license when sync mirror (go-gitea#33255) (go-gitea#33258) Backport go-gitea#33255 by yp05327 Fix go-gitea#33222 Co-authored-by: yp05327 <576951401@qq.com> * Add a confirm dialog for "sync fork" (go-gitea#33270) (go-gitea#33273) Backport go-gitea#33270 by @wxiaoguang Try to quickly fix go-gitea#33264 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix sidebar milestone link (go-gitea#33269) (go-gitea#33272) Backport go-gitea#33269 by wxiaoguang Fix go-gitea#33266 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix closed dependency title (go-gitea#33285) (go-gitea#33287) Backport go-gitea#33285 * Fix "stop time tracking button" on navbar (go-gitea#33084) (go-gitea#33300) Backport go-gitea#33084 (no conflict) Fix go-gitea#33299, and remove incorrect translations * Trivial fixes (go-gitea#33304) (go-gitea#33312) Backport go-gitea#33304 The only conflict is caused by `templates/shared/issueicon.tmpl` * Fix push message behavior (go-gitea#33215) (go-gitea#33317) Backport go-gitea#33215 Manually resolved "reqctx" conflict --------- Co-authored-by: Chai-Shi <changchaishi@gmail.com> * Fix Account linking page (go-gitea#33325) (go-gitea#33327) Backport go-gitea#33325 by CrimsonEdgeHope Fix password form missing whilst linking account even with `ENABLE_PASSWORD_SIGNIN_FORM = true`. Remove redundant empty box in account linking sign up page when `LinkAccountMode` is true. Co-authored-by: CrimsonEdgeHope <92579614+CrimsonEdgeHope@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Improve sync fork behavior (go-gitea#33319) (go-gitea#33332) Backport go-gitea#33319 Fix go-gitea#33271 The only conflict is `reqctx` in `services/repository/merge_upstream.go`, which could keep using `context.Context` in 1.23 * Make tracked time representation display as hours (go-gitea#33315) (go-gitea#33334) Try to backport go-gitea#33315, the only trivial conflict is in the helper functions map in the helper.go Fix go-gitea#33333 Co-authored-by: Sysoev, Vladimir <i@vsysoev.ru> * Fix issue count (go-gitea#33338) (go-gitea#33341) Backport go-gitea#33338 by wxiaoguang Fix go-gitea#33336 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Make issue suggestion work for all editors (go-gitea#33340) (go-gitea#33342) Backport go-gitea#33340 And do not handle special keys when the text-expander popup exists * Fix code button alignment (go-gitea#33345) (go-gitea#33351) Backport go-gitea#33345 by silverwind Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Update go tool dependencies (go-gitea#32916) (go-gitea#33355) Clean cherry-pick of go-gitea#32916. Update all go tool dependencies to latest version. * Update katex to latest version (go-gitea#33361) Partial backport of go-gitea#33359. Upgrade katex because there were a number of security problems fixed in recent versions. * Repo homepage styling tweaks (go-gitea#33289) (go-gitea#33381) Backport go-gitea#33289 by @silverwind Reduce it to a value that results in `.repo-home-sidebar-top` and `.repo-home-sidebar-bottom` having 240px content width, the same as GitHub. Co-authored-by: silverwind <me@silverwind.io> * Clone button enhancements (go-gitea#33362) (go-gitea#33404) Backport go-gitea#33362 by @silverwind - Add box-shadow to default tippy theme - Make colors for tabs match the ones from `.ui.tabular.menu` - Remove tippy arrow and slightly offset tooltip closer to the button - Fix setting of `aria-haspopup` when default role is used with tippy <img width="335" alt="image" src="https://github.com/user-attachments/assets/8633ebac-a43f-457a-86bd-7a88a83519ee" /> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Add missed auto merge feed message on dashboard (go-gitea#33309) (go-gitea#33405) Backport go-gitea#33309 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Use ProtonMail/go-crypto to replace keybase/go-crypto (go-gitea#33402) (go-gitea#33410) Backport go-gitea#33402 by wxiaoguang Fix go-gitea#33400 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix issue suggestion bug (go-gitea#33389) (go-gitea#33391) Backport go-gitea#33389 * Fix flex width (go-gitea#33414) (go-gitea#33418) Backport go-gitea#33414 by wxiaoguang Fix go-gitea#33409 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Add pubdate for repository rss and add some tests (go-gitea#33411) (go-gitea#33416) Backport go-gitea#33411 by @lunny Fix go-gitea#33291 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix system admin cannot fork or get private fork with API (go-gitea#33401) (go-gitea#33417) Backport go-gitea#33401 by @lunny Fix go-gitea#33368 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix user avatar (go-gitea#33439) * Fix issue sidebar dropdown keyboard support (go-gitea#33447) (go-gitea#33450) Backport go-gitea#33447 by wxiaoguang Just a quick fix, fix go-gitea#33444 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Revert empty lfs ref name (go-gitea#33454) (go-gitea#33457) Backport go-gitea#33454 by wxiaoguang Fix go-gitea#33453 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix SSH LFS memory usage (go-gitea#33455) (go-gitea#33460) Backport go-gitea#33455 by wxiaoguang Fix go-gitea#33448 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix `GetCommitBranchStart` bug (go-gitea#33298) (go-gitea#33421) Backport go-gitea#33298 by Zettat123 Fix go-gitea#33265 Fix go-gitea#33370 This PR also fixes some bugs in `TestGitGeneral`. --------- Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Add tests for webhook and fix some webhook bugs (go-gitea#33396) (go-gitea#33442) This PR created a mock webhook server in the tests and added integration tests for generic webhooks. It also fixes bugs in package webhooks and pull request comment webhooks. This also corrected an error on the package webhook. The previous implementation uses a `User` struct as an organization, now it has been corrected but it will not be consistent with the previous implementation, some fields which not belong to the organization have been removed. Backport go-gitea#33396 Backport part of go-gitea#33337 * Correct bot label `vertical-align` (go-gitea#33477) (go-gitea#33480) * Fix commit status events (go-gitea#33320) (go-gitea#33493) Fix go-gitea#32873 Fix go-gitea#33201 ~Fix go-gitea#33244~ ~Fix go-gitea#33302~ depends on ~go-gitea#33396~ backport go-gitea#33320 * Fix unnecessary comment when moving issue on the same project column (go-gitea#33496) (go-gitea#33499) Backport go-gitea#33496 by @lunny Fix go-gitea#33482 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * add `timetzdata` build tag to binary releases (go-gitea#33463) (go-gitea#33503) Backport go-gitea#33463 Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Add changelog for 1.23.2 (go-gitea#33494) Wait - go-gitea#33499 - go-gitea#33493 - go-gitea#33503 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix a bug caused by status webhook template (go-gitea#33512) Fix go-gitea#33511 * Add changelog for 1.23.3 (go-gitea#33515) Co-authored-by: techknowlogick <techknowlogick@gitea.io> * Rework suggestion backend (go-gitea#33538) (go-gitea#33546) Backport go-gitea#33538 by @lunny Fix go-gitea#33522 The suggestion backend logic now is - If the keyword is empty, returned the latest 5 issues/prs with index desc order - If the keyword is digital, find all issues/prs which `index` has a prefix with that, with index asc order - If the keyword is non-digital or if the queried records less than 5, searching issues/prs title with a `like`, with index desc order ## Empty keyword <img width="310" alt="image" src="https://github.com/user-attachments/assets/1912c634-0d98-4eeb-8542-d54240901f77" /> ## Digital <img width="479" alt="image" src="https://github.com/user-attachments/assets/0356a936-7110-4a24-b21e-7400201bf9b8" /> ## Digital and title contains the digital <img width="363" alt="image" src="https://github.com/user-attachments/assets/6e12f908-28fe-48de-8ccc-09cbeab024d4" /> ## non-Digital <img width="435" alt="image" src="https://github.com/user-attachments/assets/2722bb53-baa2-4d67-a224-522a65f73856" /> <img width="477" alt="image" src="https://github.com/user-attachments/assets/06708dd9-80d1-4a88-b32b-d29072dd1ba6" /> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Enhance routers for the Actions variable operations (go-gitea#33547) (go-gitea#33553) Backport go-gitea#33547 Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io> * Enhance routers for the Actions runner operations (go-gitea#33549) (go-gitea#33555) Backport go-gitea#33549 - Find the runner before deleting - Move the main logic from `routers/web/repo/setting/runners.go` to `routers/web/shared/actions/runners.go`. Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix context usage (go-gitea#33554) (go-gitea#33557) Backport go-gitea#33554 * Add a transaction to `pickTask` (go-gitea#33543) (go-gitea#33563) Backport go-gitea#33543 In the old `pickTask`, when getting secrets or variables failed, the task could get stuck in the `running` status (task status is `running` but the runner did not fetch the task). To fix this issue, these steps should be in one transaction. --------- Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Skip deletion error for action artifacts (go-gitea#33476) (go-gitea#33568) Fix go-gitea#33567 * Fix various problems (artifact order, api empty slice, assignee check, fuzzy prompt, mirror proxy, adopt git) (go-gitea#33569) (go-gitea#33577) Backport go-gitea#33569 by @wxiaoguang * Make artifact list output has stable order * Fix go-gitea#33506 * Fix go-gitea#33521 * Fix go-gitea#33288 * Fix go-gitea#33196 * Fix go-gitea#33561 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Only show the latest version in the Arch index (go-gitea#33262) (go-gitea#33580) Backport go-gitea#33262 by ExplodingDragon Only show the latest version of the package in the arch repo. closes go-gitea#33534 Co-authored-by: Exploding Dragon <explodingfkl@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Performance optimization for pull request files loading comments attachments (go-gitea#33585) (go-gitea#33592) Backport go-gitea#33585 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix PR's target branch dropdown (go-gitea#33589) (go-gitea#33591) Backport go-gitea#33589 * Use default Git timeout when checking repo health (go-gitea#33593) (go-gitea#33598) Backport go-gitea#33593 by @Zettat123 Use `git.timeout.DEFAULT` configuration instead of 60 seconds. Co-authored-by: Zettat123 <zettat123@gmail.com> * Fix mirror bug (go-gitea#33597) (go-gitea#33607) Backport go-gitea#33597 by @ericLemanissier follows-up be4e961 This is the same modification as go-gitea@be4e961 but for force-pushes. It is needed, because `git fetch` reveals force pushes for github mirrors: ``` $ git fetch --tags origin remote: Enumerating objects: 22, done. remote: Counting objects: 100% (22/22), done. remote: Compressing objects: 100% (4/4), done. remote: Total 9 (delta 5), reused 8 (delta 5), pack-reused 0 (from 0) Unpacking objects: 100% (9/9), 1.70 KiB | 12.00 KiB/s, done. From https://github.com/conan-io/conan-center-index 729f0f1b8f..48184eddeb refs/pull/26595/head -> refs/pull/26595/head + 0c31ab60a3...1283cca9e7 refs/pull/26595/merge -> refs/pull/26595/merge (forced update) ``` Fix go-gitea#33200 PS: I did not test the modification, but it is the exact same change as the last hunk in https://github.com/go-gitea/gitea/pull/33224/files#diff-bb5cdb90db0f0e7f6716c0e6d0b9cbb67f08d82052b03ab3a7b5e23a1d76aed7 , just moved to the previous case of the switch Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * Fix project issues list and counting (go-gitea#33594) (go-gitea#33619) Backport go-gitea#33594 by lunny --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Make actions URL in commit status webhooks absolute (go-gitea#33620) (go-gitea#33632) Backport go-gitea#33620 by lunny Fix go-gitea#33603 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * fix: add missing locale (go-gitea#33641) (go-gitea#33642) * Release of Gitea 1.23.4 (go-gitea#33621) --------- Co-authored-by: Zettat123 <zettat123@gmail.com> * git graph: don't show detached commits (go-gitea#33645) (go-gitea#33650) Backport go-gitea#33645 by ericLemanissier Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * Fix mCaptcha bug (go-gitea#33659) (go-gitea#33661) Backport go-gitea#33659 by wxiaoguang Fix go-gitea#33658 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix omitempty bug (go-gitea#33663) (go-gitea#33670) Backport go-gitea#33663 by @lunny Fix go-gitea#33660 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Deleting repository should unlink all related packages (go-gitea#33653) (go-gitea#33673) Backport go-gitea#33653 by @lunny Fix go-gitea#33634 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Improve Open-with URL encoding (go-gitea#33666) (go-gitea#33680) Backport go-gitea#33666 by wxiaoguang Fix go-gitea#33665 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix for Maven Package Naming Convention Handling (go-gitea#33678) (go-gitea#33679) Backport go-gitea#33678 by dianaStr7 Co-authored-by: Diana <80010947+dianaStr7@users.noreply.github.com> Co-authored-by: diana.strebkova@t-systems.com <diana.strebkova@t-systems.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Try to fix ACME path when renew (go-gitea#33668) (go-gitea#33693) Backport go-gitea#33668 by wxiaoguang Try to fix go-gitea#32191 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix OCI image.version annotation for releases to use full semver (go-gitea#33698) (go-gitea#33701) * Optimize user dashboard loading (go-gitea#33686) (go-gitea#33708) Backport go-gitea#33686 by @lunny Fix go-gitea#33582 Fix go-gitea#31698 When a user login, the dashboard should load all feed belongs to him with no any conditions. The complicated conditions should be applied only for another user view this user's profile. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Use MatchPhraseQuery for bleve code search (go-gitea#33628) Fix regression from go-gitea#32210 which unintentionally changed the search mode for bleve from MaatchPhraseQuery to MatchQuery. On the main branch, meanwhile with go-gitea#33590 a "literal code search" mode (by using quotes) was implemented as workaround for this unexpected code search behavior. Maybe that feature needs some redesign as it turns out to have been caused by a regression. But this PR at least already fixes the regression for 1.23.x * Fix inconsistent closed issue list icon (go-gitea#33722) (go-gitea#33728) Backport go-gitea#33722 by @lunny Fixe go-gitea#33718 Before  After  Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Remove superflous tw-content-center (go-gitea#33741) (go-gitea#33743) Backport go-gitea#33741 by @silverwind Co-authored-by: silverwind <me@silverwind.io> * bump x/oauth2 & x/crypto (go-gitea#33704) (go-gitea#33727) Backport dep bump --------- Co-authored-by: silverwind <me@silverwind.io> * Disable go license generation as part of `make tidy` (go-gitea#33747) (go-gitea#33751) Backport go-gitea#33747 by @silverwind It seems something broken `google/go-licenses` (maybe related to go 1.24), and my findings are in google/go-licenses#128 (comment). I think it's best we disable this generation for now until a better solution is found. Also, enable showing stderr output so we can actually debug this thing. For reference, these are the errors that currently apparently break the tool: ``` E0228 05:15:27.005759 13158 library.go:117] Package text/tabwriter does not have module info. Non go modules projects are no longer supported. For feedback, refer to google/go-licenses#128. E0228 05:15:27.005776 13158 library.go:117] Package net/http/fcgi does not have module info. Non go modules projects are no longer supported. For feedback, refer to google/go-licenses#128. F0228 05:15:27.028122 13158 main.go:77] some errors occurred when loading direct and transitive dependency packages ``` Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.com> * upgrade go-crypto from 1.1.4 to 1.1.6 (go-gitea#33745) (go-gitea#33754) * Fix navbar dropdown item align (go-gitea#33782) 1.23 only Fix go-gitea#33781 * Update minimum version of mssql tested * Adjust appearence of commit status webhook (go-gitea#33778) (go-gitea#33789) Backport go-gitea#33778 by @denyskon Some visual improvement for the commit status webhook message introduced by go-gitea#33320 - use short commit SHA as already done in e. g. commit webhook - fix spacing, link text - do not set user link for internal gitea-actions user Before:  After:  Co-authored-by: Denys Konovalov <kontakt@denyskon.de> * Add changelog for 1.23.5 (go-gitea#33780) Wait tomorrow's Golang version. Maybe wait backport of go-gitea#33764 and go-gitea#33744, go-gitea#33789 --------- Co-authored-by: metiftikci <metiftikci@hotmail.com> * Upgrade golang net from 0.35.0 -> 0.36.0 go-gitea#33795 (go-gitea#33796) Backport go-gitea#33795 * Support disable passkey auth (go-gitea#33348) (go-gitea#33819) * Backport go-gitea#33348 * Backport go-gitea#33820 --------- Co-authored-by: yp05327 <576951401@qq.com> * Try to fix ACME (3rd) (go-gitea#33807) (go-gitea#33808) Backport go-gitea#33807 * Do not call "git diff" when listing PRs (go-gitea#33817) Fix go-gitea#31492 * Removing unwanted ui container (go-gitea#33833) (go-gitea#33835) Backport go-gitea#33833 by Vinoth-kumar-Ganesan when the passkey auth and register was disabled the unwanted ui container was show Co-authored-by: Vinoth Kumar <103478407+Vinoth-kumar-Ganesan@users.noreply.github.com> Co-authored-by: Vinoth414 <103478407+Vinoth414@users.noreply.github.com> * Fix LFS URL (go-gitea#33840) (go-gitea#33843) Backport go-gitea#33840 by wxiaoguang Fix go-gitea#33839 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix some UI problems for 1.23 (go-gitea#33856) Partially backport go-gitea#32927 go-gitea#33851 * Fix auto concurrency cancellation skips commit status updates (go-gitea#33764) (go-gitea#33849) Backport go-gitea#33764 * add missing commit status * conflicts with concurrency support * Fix markdown render (go-gitea#33870) (go-gitea#33875) Backport go-gitea#33870 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Ignore trivial errors when updating push data (go-gitea#33864) (go-gitea#33887) Backport go-gitea#33864 by wxiaoguang Fix go-gitea#23213 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix maven panic when no package exists (go-gitea#33888) (go-gitea#33889) Backport go-gitea#33888 by @wxiaoguang Fix go-gitea#33886 Restore the old logic from go-gitea#16510, which was incorrectly removed by go-gitea#33678 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Try to figure out attribute checker problem (go-gitea#33901) (go-gitea#33902) Backport go-gitea#33901 * Fix incorrect 1.23 translations (go-gitea#33932) Fix go-gitea#33931 * Fix oauth2 auth (go-gitea#33961) (go-gitea#33962) Backport go-gitea#33961 UI fix is not needed. * Drop timeout for requests made to the internal hook api (go-gitea#33947) (go-gitea#33970) Backport go-gitea#33947 by Mik4sa Co-authored-by: Kai Leonhardt <8343141+Mik4sa@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * update jwt and redis packages (go-gitea#33984) (go-gitea#33987) * Update golang crypto and net for 1.23 (go-gitea#33989) * Fix incorrect code search indexer options (go-gitea#33992) (go-gitea#33999) Backport go-gitea#33992 by @wxiaoguang Fix go-gitea#33798 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Add changelog for 1.23.6 (go-gitea#33975) (go-gitea#34000) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> * Git client will follow 301 but 307 (go-gitea#34005) (go-gitea#34010) Backport go-gitea#34005 by lunny Fix go-gitea#28460 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Polyfill WeakRef (go-gitea#34025) (go-gitea#34028) Backport go-gitea#34025 by wxiaoguang Fix go-gitea#33407 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Try to fix check-attr bug (go-gitea#34029) (go-gitea#34033) Backport go-gitea#34029 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix the issue with error message logging for the `check-attr` command on Windows OS. (go-gitea#34035) (go-gitea#34036) Backport go-gitea#34035 by charles7668 Close go-gitea#34022 , go-gitea#33550 This error message always appears when using the `check-attr` command, even though it works correctly. The issue occurs when the stdin writer is closed, so I added a special case to handle and check the error message when the exit code is 1. Co-authored-by: charles <30816317+charles7668@users.noreply.github.com> * Fix git client accessing renamed repo (go-gitea#34034) (go-gitea#34043) Backport go-gitea#34034 * fix org repo creation being limited by user limits (go-gitea#34030) (go-gitea#34044) Backport go-gitea#34030 * Simplify emoji rendering (go-gitea#34048) (go-gitea#34049) Backport go-gitea#34048 by silverwind Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Adjust the layout of the toolbar on the Issues/Projects page (go-gitea#33667) (go-gitea#34047) And fix layout for mobile Backport go-gitea#33667 Fix go-gitea#33880 --------- Co-authored-by: Kerwin Bryant <kerwin612@qq.com> * Pull request updates will also trigger code owners review requests (go-gitea#33744) (go-gitea#34045) Fix go-gitea#33490 Backport go-gitea#33744 It will only read the changed file on the pushed commits but not all the files of this PR. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix repo-template.ts error in 1.23 (go-gitea#34060) Fix go-gitea#34059 * add additional ReplaceAll in pathsep to cater for different pathsep (go-gitea#34061) (go-gitea#34070) Backport go-gitea#34061 by eeyrjmr The doctor storage check reconstructs the lfs oid by producing a string where the path separator is stripped ab/dc/efg -> abdcefg. Windows however uses a backslash and thus the ReplaceAll call doesn't produce the correct oid resulting in all lfs objects being classed as orphaned. This PR allows this to be more OS agnostic. Closes go-gitea#34039 Co-authored-by: JonRB <4564448+eeyrjmr@users.noreply.github.com> * Add a config option to block "expensive" pages for anonymous users (go-gitea#34024) (go-gitea#34071) Backport go-gitea#34024 since there are too many AI crawlers. The new code is covered by tests and it does nothing if users don't set it. * Hide activity contributors, recent commits and code frequrency left tabs if there is no code permission (go-gitea#34053) (go-gitea#34065) Backport go-gitea#34053 When a team have no code unit permission of a repository, the member of the team should not view activity contributors, recent commits and code frequrency. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Return default avatar url when user id is zero rather than updating database (go-gitea#34094) (go-gitea#34095) Backport go-gitea#34094 by @lunny When visit commit list, it would update the user avatar even if id = 0, which was unnecessary operations. This PR returned default avatar for the git only user avatar rendering who's user id is zero. ```log database duration=0.0005s db.sql="UPDATE `user` SET `avatar` = ?, `updated_unix` = ? WHERE `id`=?" database duration=0.0007s db.sql="UPDATE `user` SET `avatar` = ?, `updated_unix` = ? WHERE `id`=?" ... ``` Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Do not show 500 error when default branch doesn't exist (go-gitea#34096) (go-gitea#34097) Backport go-gitea#34096 * Add new CLI flags to set name and scopes when creating a user with access token (go-gitea#34080) (go-gitea#34103) Backport go-gitea#34080 Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com> * Fix markdown frontmatter rendering (go-gitea#34102) (go-gitea#34107) Backport go-gitea#34102 Fix go-gitea#34101 * also check default ssh-cert location for host (go-gitea#34099) (go-gitea#34100) (go-gitea#34116) Backport go-gitea#34100 by @ManInDark Fixes go-gitea#34099. Resolved by checking the `key-cert.pub` location alongside the previously configured location. In case a certificate is already found, this won't change anything, but if there is one in `key-cert.pub` but not in `key_cert`, it'll use that one now. Co-authored-by: ManInDark <61268856+ManInDark@users.noreply.github.com> * Fix invalid version in RPM package path (go-gitea#34112) (go-gitea#34115) Backport go-gitea#34112 by @KN4CK3R Fixes go-gitea#34017 Co-authored-by: KN4CK3R <admin@oldschoolhack.me> * Get changed files based on merge base when checking `pull_request` actions trigger (go-gitea#34106) (go-gitea#34120) Backport go-gitea#34106 Fix go-gitea#33941 * Fix discord webhook 400 status code when description limit is exceeded (go-gitea#34084) (go-gitea#34124) Backport go-gitea#34084 by @Mopcho Fixes [go-gitea#34027](go-gitea#34027) Discord does not allow for description bigger than 2048 bytes. If the description is bigger than that it will throw 400 and the event won't appear in discord. To fix that, in the createPayload method we now slice the description to ensure it doesn’t exceed the limit. --------- Co-authored-by: Mopcho <47301161+Mopcho@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix block expensive for 1.23 (go-gitea#34127) * Release note 1.23.7 (go-gitea#34117) * Bump go version in go.mod (go-gitea#34160) Fixes: https://pkg.go.dev/vuln/GO-2025-3563 Because of a bug in go, we can not remove the minor version in go.mod without `make tidy` introducing a potentially harmful `toolchain` directive, so just bump the go version here. From what I gather, this will be fixed in go 1.25. * remove hardcoded 'code' string in clone_panel.tmpl (go-gitea#34153) (go-gitea#34158) Backport go-gitea#34153 by @wkelly17 This commit replaces the hardcoded string "code" in the clone panel button with the i18n local for repo.code. Co-authored-by: Will Kelly <67284402+wkelly17@users.noreply.github.com> Co-authored-by: silverwind <me@silverwind.io> * bugfix check for alternate ssh host certificate location (go-gitea#34146) (go-gitea#34166) Backport go-gitea#34146 by ManInDark fixes go-gitea#34145 Edited all locations to actually be correct. Co-authored-by: ManInDark <61268856+ManInDark@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * fix(go-gitea#33711): cross-publish docker images to ghcr.io (go-gitea#34148) (go-gitea#34176) * feat: add riscv64 support (go-gitea#34199) (go-gitea#34204) Backport go-gitea#34199 by @mengzhuo Co-authored-by: Meng Zhuo <mengzhuo1203@gmail.com> * Fix empty repo clone panel border (go-gitea#34219) (go-gitea#34220) Backport go-gitea#34219 by kerwin612 Co-authored-by: Kerwin Bryant <kerwin612@qq.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix two missed null value checks on the wiki page. (go-gitea#34205) (go-gitea#34215) Backport go-gitea#34205 by @kerwin612 before:  after:  Co-authored-by: Kerwin Bryant <kerwin612@qq.com> * Update net package (go-gitea#34228) (go-gitea#34232) * Fix project board links to related Pull Requests (go-gitea#34213) (go-gitea#34222) Backport go-gitea#34213 by @badhezi Resolves go-gitea#34181 Co-authored-by: badhezi <zlilaharon@gmail.com> * Swift files can be passed either as file or as form value (go-gitea#34068) (go-gitea#34236) Backport go-gitea#34068 by wgr1984 Fix go-gitea#33990 Co-authored-by: Wolfgang Reithmeier <w.reithmeier@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Don't assume the default wiki branch is master in the wiki API (go-gitea#34244) (go-gitea#34245) Backport go-gitea#34244 by kemzeb Resolves go-gitea#34218. In the recent past, the default wiki branch was made to be changeable. This change reflects this. Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com> * Fix panic when comment is nil (go-gitea#34257) (go-gitea#34277) Fix go-gitea#34254 Backport go-gitea#34257 * Update token creation API swagger documentation (go-gitea#34288) (go-gitea#34296) Backport go-gitea#34288 by @lunny Fix go-gitea#34231 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Explicitly not update indexes when sync database schemas (go-gitea#34281) (go-gitea#34295) Fix go-gitea#34275 Backport go-gitea#34281 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * fix github migration error when using multiple tokens (go-gitea#34144) (go-gitea#34302) Backport go-gitea#34144 by @TheFox0x7 Git authorization was not taking into account multiple token feature, leading to auth failures Closes: go-gitea#34141 --------- Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix wrong review requests when updating the pull request (go-gitea#34286) (go-gitea#34304) Backport go-gitea#34286 by @lunny Fix go-gitea#34224 The previous implementation in go-gitea#33744 will get the pushed commits changed files. But it's not always right when push a merged commit. This PR reverted the logic in go-gitea#33744 and will always get the PR's changed files and get code owners. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix CI Build (go-gitea#34315) Backport go-gitea#34309 * Fix bug when visiting comparation page (go-gitea#34334) (go-gitea#34364) Backport go-gitea#34334 by @lunny The `ci.HeadGitRepo` was opened and closed in the function `ParseCompareInfo` but reused in the function `PrepareCompareDiff`. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * Fix bug when API get pull changed files for deleted head repository (go-gitea#34333) (go-gitea#34368) Backport go-gitea#34333 by @lunny --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> * upgrade github v61 -> v71 to fix migrating bug (go-gitea#34389) backport go-gitea#34385 * Fix a bug when uploading file via lfs ssh command 1.23 (go-gitea#34408) (go-gitea#34411) Partially backport go-gitea#34408 * Fix bug webhook milestone is not right. (go-gitea#34419) (go-gitea#34429) Backport go-gitea#34419 by @lunny Fix go-gitea#34400 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io> * Add changelog for 1.23.8 (go-gitea#34430) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Fix releases sidebar navigation link (go-gitea#34436) (go-gitea#34439) Backport go-gitea#34436 by @badhezi Resolves go-gitea#34435 --------- Co-authored-by: badhezi <zlilaharon@gmail.com> --------- Signed-off-by: a1012112796 <1012112796@qq.com> Signed-off-by: cassiozareck <cassiomilczareck@gmail.com> Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: Exploding Dragon <explodingfkl@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-authored-by: katsu <evergonuaa@gmail.com> Co-authored-by: metiftikci <metiftikci@hotmail.com> Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: a1012112796 <1012112796@qq.com> Co-authored-by: Henry Goodman <79623665+henrygoodman@users.noreply.github.com> Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-authored-by: cassio zareck <121526696+cassiozareck@users.noreply.github.com> Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com> Co-authored-by: Steffen Schröter <steffen@vexar.de> Co-authored-by: Chai-Shi <changchaishi@gmail.com> Co-authored-by: yp05327 <576951401@qq.com> Co-authored-by: Harry Vince <47283812+harryvince@users.noreply.github.com> Co-authored-by: CrimsonEdgeHope <92579614+CrimsonEdgeHope@users.noreply.github.com> Co-authored-by: Sysoev, Vladimir <i@vsysoev.ru> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> Co-authored-by: Diana <80010947+dianaStr7@users.noreply.github.com> Co-authored-by: diana.strebkova@t-systems.com <diana.strebkova@t-systems.com> Co-authored-by: Jimmy Praet <jimmy.praet@telenet.be> Co-authored-by: Denys Konovalov <kontakt@denyskon.de> Co-authored-by: Vinoth Kumar <103478407+Vinoth-kumar-Ganesan@users.noreply.github.com> Co-authored-by: Vinoth414 <103478407+Vinoth414@users.noreply.github.com> Co-authored-by: ChristopherHX <christopher.homberger@web.de> Co-authored-by: Kai Leonhardt <8343141+Mik4sa@users.noreply.github.com> Co-authored-by: charles <30816317+charles7668@users.noreply.github.com> Co-authored-by: Kerwin Bryant <kerwin612@qq.com> Co-authored-by: JonRB <4564448+eeyrjmr@users.noreply.github.com> Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com> Co-authored-by: ManInDark <61268856+ManInDark@users.noreply.github.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Mopcho <47301161+Mopcho@users.noreply.github.com> Co-authored-by: Will Kelly <67284402+wkelly17@users.noreply.github.com> Co-authored-by: Meng Zhuo <mengzhuo1203@gmail.com> Co-authored-by: badhezi <zlilaharon@gmail.com> Co-authored-by: Wolfgang Reithmeier <w.reithmeier@gmail.com> Co-authored-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com>
Fix #33990