summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Switch to upstream of `gorilla/feeds` (#31400) (#31464)techknowlogick2024-06-232-5/+3
| | | backport #31400
* Switch to "Write" tab when edit comment again (#31445) (#31461)Giteabot2024-06-222-12/+17
| | | | | | | Backport #31445 by wxiaoguang Fix #19031 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Support relative paths to videos from Wiki pages (#31061) (#31453)Giteabot2024-06-223-43/+83
| | | | | | | | | | | | | | | | | | | Backport #31061 by @sergeyvfx This change fixes cases when a Wiki page refers to a video stored in the Wiki repository using relative path. It follows the similar case which has been already implemented for images. Test plan: - Create repository and Wiki page - Clone the Wiki repository - Add video to it, say `video.mp4` - Modify the markdown file to refer to the video using `<video src="video.mp4">` - Commit the Wiki page - Observe that the video is properly displayed Co-authored-by: Sergey Sharybin <sergey.vfx@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix the link for .git-blame-ignore-revs bypass (#31432) (#31442)Giteabot2024-06-211-1/+1
| | | | | Backport #31432 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix the wrong line number in the diff view page when expanded twice. ↵Giteabot2024-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | (#31431) (#31440) Backport #31431 by @charles7668 close #31149 The problem is caused by the `data-query=` string affecting the parsing of the `last_left` parameter. When the page is first rendered, `data-query=` does not exist. However, after clicking expand, the returned HTML contains this string, causing the line numbers to start from 1 upon expanding a second time. before fix ![圖片](https://github.com/go-gitea/gitea/assets/30816317/36842bde-cc30-43ba-91b0-c60a50a6dc0f) after fix ![圖片](https://github.com/go-gitea/gitea/assets/30816317/b73d7e40-ec01-48ae-9992-09c19ee477ad) Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
* Fix labels and projects menu overflow on issue page (#31435) (#31439)Giteabot2024-06-201-5/+5
| | | | | | | | | Backport #31435 by brechtvl It was correct only on the new issue page. Resolves #31415 Co-authored-by: Brecht Van Lommel <brecht@blender.org>
* [Fix] Account Linking UpdateMigrationsByType (#31428) (#31434)Giteabot2024-06-201-0/+6
| | | | | Backport #31428 by Sumit189 Co-authored-by: Sumit <sumit.18.paul@gmail.com>
* Fix markdown math brackets render problem (#31420) (#31430)Giteabot2024-06-202-1/+9
| | | | | | Backport #31420 by charles7668 Co-authored-by: charles <30816317+charles7668@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Increase max length of org team names from 30 to 255 characters (#31410) ↵Giteabot2024-06-201-2/+2
| | | | | | | | | | | (#31421) Backport #31410 by tobiasbp This PR modifies the structs for editing and creating org teams to allow team names to be up to 255 characters. The previous maximum length was 30 characters. Co-authored-by: Tobias Balle-Petersen <tobias.petersen@unity3d.com>
* Fix new issue/pr avatar (#31419) (#31424)Giteabot2024-06-191-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Backport #31419 by @silverwind The avatar on "New Issue" and "New Pull Request" pages was inconsistent. Removed the extra margin and the new CSS rules now use common parent `<form id="#new-issue">` because `.repository.new.issue` is not present on pull request page. Before: <img width="181" alt="Screenshot 2024-06-19 at 13 56 17" src="https://github.com/go-gitea/gitea/assets/115237/5270d352-db5b-45b3-9d06-4790c17ae9b4"> <img width="213" alt="Screenshot 2024-06-19 at 13 54 02" src="https://github.com/go-gitea/gitea/assets/115237/012f5607-aef0-4f48-90e3-8d4022480203"> After: <img width="195" alt="Screenshot 2024-06-19 at 13 54 16" src="https://github.com/go-gitea/gitea/assets/115237/e7590c66-3b28-4790-9970-33bd567eeb31"> <img width="212" alt="Screenshot 2024-06-19 at 13 54 22" src="https://github.com/go-gitea/gitea/assets/115237/8e1cfede-614c-4cea-9af2-ada6da7a7361"> Co-authored-by: silverwind <me@silverwind.io>
* Reduce `air` verbosity (#31417) (#31425)Giteabot2024-06-201-0/+3
| | | | | | | | Backport #31417 by @silverwind Make `air` log less. Uses the option added in https://github.com/air-verse/air/pull/367. Co-authored-by: silverwind <me@silverwind.io>
* Fix rendered wiki page link (#31398) (#31407)wxiaoguang2024-06-1911-78/+62
| | | | | Backport #31398 Fix #31395
* Fix double border in system status table (#31363) (#31401)Giteabot2024-06-181-3/+5
| | | | | | Backport #31363 by silverwind Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix bug filtering issues which have no project (#31337) (#31367)Lunny Xiao2024-06-171-1/+6
|
* Fix natural sort (#31384) (#31394)Giteabot2024-06-172-17/+87
| | | | | | | Backport #31384 by wxiaoguang Fix #31374 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix missing images in editor preview due to wrong links (#31299) (#31393)wxiaoguang2024-06-175-77/+102
| | | | | | | | | | | | Backport #31299 Parse base path and tree path so that media links can be correctly created with /media/. Resolves #31294 --------- Co-authored-by: Brecht Van Lommel <brecht@blender.org>
* Allow downloading attachments of draft releases (#31369) (#31380)Giteabot2024-06-161-2/+3
| | | | | | | Backport #31369 by Zettat123 Fix #31362 Co-authored-by: Zettat123 <zettat123@gmail.com>
* Fix duplicate sub-path for avatars (#31365) (#31368)wxiaoguang2024-06-156-16/+86
| | | Backport #31365, only backport necessary changes.
* Fix repo graph JS (#31377)wxiaoguang2024-06-141-3/+3
| | | | Fix #31376 Regression of #30395
* Backport Iif (#31353)wxiaoguang2024-06-132-2/+70
|
* Fixed incorrect localization `explorer.go` (#31348) (#31350)Giteabot2024-06-131-5/+1
| | | | | | | Backport #31348 by @kerwin612 see: https://github.com/go-gitea/gitea/pull/29701/files#r1637325139 Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
* Fix hash render end with colon (#31319) (#31346)Giteabot2024-06-132-1/+2
| | | | | | | | Backport #31319 by @lunny Fix a hash render problem like `<hash>: xxxxx` which is usually used in release notes. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix line number widths (#31341) (#31343)Giteabot2024-06-132-8/+9
| | | | | | Backport #31341 by silverwind Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix adopt repository has empty object name in database (#31333) (#31335)Giteabot2024-06-121-0/+1
| | | | | | | | | | | Backport #31333 by @lunny Fix #31330 Fix #31311 A workaround to fix the old database is to update object_format_name to `sha1` if it's empty or null. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix navbar `+` menu flashing on page load (#31281) (#31342)Giteabot2024-06-126-28/+46
| | | | | | Backport #31281 by silverwind Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Reduce memory usage for chunked artifact uploads to MinIO (#31325) (#31338)Giteabot2024-06-121-2/+2
| | | | | | | | | | | | | | | Backport #31325 by @bohde When using the MinIO storage driver for Actions Artifacts, we found that the chunked artifact required significantly more memory usage to both upload and merge than the local storage driver. This seems to be related to hardcoding a value of `-1` for the size to the MinIO client [which has a warning about memory usage in the respective docs](https://pkg.go.dev/github.com/minio/minio-go/v7#Client.PutObject). Specifying the size in both the upload and merge case reduces memory usage of the MinIO client. Co-authored-by: Rowan Bohde <rowan.bohde@gmail.com> Co-authored-by: Kyle D <kdumontnu@gmail.com>
* Fix #31185 try fix lfs download from bitbucket failed (#31201) (#31329)Giteabot2024-06-128-13/+16
| | | | | | | Backport #31201 by @Zoupers Fix #31185 Co-authored-by: Zoupers Zou <1171443643@qq.com>
* Delete legacy cookie before setting new cookie (#31306) (#31317)Giteabot2024-06-111-4/+4
| | | | | Backport #31306 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix line number width in code preview (#31307) (#31316)Giteabot2024-06-111-2/+0
| | | | | | | | | | | Backport #31307 by silverwind Line numbers were using some hacky CSS `width: 1%` that did nothing to the code rendering as far as I can tell but broken the inline preview in markup when line numbers are greater than 2 digits. Also I removed one duplicate `font-family` rule (it is set below in the `.lines-num, .lines-code` selector. Co-authored-by: silverwind <me@silverwind.io>
* Add nix flake for dev shell (#30967) (#31310)65432024-06-112-0/+98
| | | Backport #30967
* Remove sub-path from container registry realm (#31293) (#31300)Giteabot2024-06-105-14/+23
| | | | | Backport #31293 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix some URLs whose sub-path is missing (#31289) (#31292)Giteabot2024-06-073-3/+3
| | | | | | | Backport #31289 by wxiaoguang Fix #31285 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix and clean up `ConfirmModal` (#31283) (#31291)Giteabot2024-06-075-15/+28
| | | | | | | | | | | | | | | | | Backport #31283 by @silverwind Bug: orange button color was removed in https://github.com/go-gitea/gitea/pull/30475, replaced with red Bug: translation text was not html-escaped Refactor: Replaced as much jQuery as possible, added useful `createElementFromHTML` Refactor: Remove colors checks that don't exist on `.link-action` <img width="381" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/5900bf6a-8a86-4a86-b368-0559cbfea66e"> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de>
* Optimize repo-list layout to enhance visual experience (#31272) (#31276)Giteabot2024-06-072-10/+6
| | | | | | | | | | | | | | | | Backport #31272 by @kerwin612 before: ![1717655078227](https://github.com/go-gitea/gitea/assets/3371163/4d564f96-c2f8-46b1-996f-6cc7abb940ef) ***The problem was that the icon and text were not on a horizontal line, and the horizontal was not centered;*** after: ![1717655094071](https://github.com/go-gitea/gitea/assets/3371163/b11797f6-05f8-486c-b5fd-df89d0cbdcfd) Co-authored-by: Kerwin Bryant <kerwin612@qq.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* fixed the dropdown menu for the top New button to expand to the left ↵Giteabot2024-06-071-1/+1
| | | | | | | | | | | | | | | (#31273) (#31275) Backport #31273 by @kerwin612 before: ![1717660314025](https://github.com/go-gitea/gitea/assets/3371163/17ae7a48-31c5-4c71-b285-f65d9106bf86) after: ![1717660674763](https://github.com/go-gitea/gitea/assets/3371163/85f847ac-a044-4695-9004-26e6485288c6) Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
* Fix Activity Page Contributors dropdown (#31264) (#31269)Giteabot2024-06-064-17/+12
| | | | | | | Backport #31264 by wxiaoguang Fix #31261 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add replacement module for `mholt/archiver` (#31267) (#31270)Giteabot2024-06-062-2/+5
| | | | | | | | | | | | | Backport #31267 by @silverwind Switch to this fork tag: https://github.com/anchore/archiver/releases/tag/v3.5.2 which includes https://github.com/anchore/archiver/commit/82ca88a2eb24d418c30bf960ef071b0bbec04631. Ref: https://pkg.go.dev/vuln/GO-2024-2698 Ref: https://github.com/advisories/GHSA-rhh4-rh7c-7r5v Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Optimize runner-tags layout to enhance visual experience (#31258) (#31263)Giteabot2024-06-061-1/+1
| | | | | | | | Backport #31258 by @kerwin612 ![image](https://github.com/go-gitea/gitea/assets/3371163/b8199005-94f2-45be-8ca9-4fa1b3f221b2) Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
* fix: allow actions artifacts storage migration to complete succesfully ↵Giteabot2024-06-051-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | (#31251) (#31257) Backport #31251 by @bohde Change the copy to use `ActionsArtifact.StoragePath` instead of the `ArtifactPath`. Skip artifacts that are expired, and don't error if the file to copy does not exist. --- When trying to migrate actions artifact storage from local to MinIO, we encountered errors that prevented the process from completing successfully: * The migration tries to copy the files using the per-run `ArtifactPath`, instead of the unique `StoragePath`. * Artifacts that have been marked expired and had their files deleted would throw an error * Artifacts that are pending, but don't have a file uploaded yet will throw an error. This PR addresses these cases, and allow the process to complete successfully. Co-authored-by: Rowan Bohde <rowan.bohde@gmail.com>
* Make blockquote attention recognize more syntaxes (#31240) (#31250)Giteabot2024-06-043-19/+86
| | | | | | | Backport #31240 by wxiaoguang Fix #31214 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix admin oauth2 custom URL settings (#31246) (#31247)Giteabot2024-06-041-12/+17
| | | | | | | Backport #31246 by wxiaoguang Fix #31244 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make pasted "img" tag has the same behavior as markdown image (#31235) (#31243)Giteabot2024-06-045-60/+80
| | | | | | | | | | Backport #31235 by wxiaoguang Fix #31230 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix NuGet Package API for $filter with Id equality (#31188) (#31242)Thomas Desveaux2024-06-042-35/+115
| | | | | | | | | | | | | | | | | | | | | | Backport #31188 Fixes issue when running `choco info pkgname` where `pkgname` is also a substring of another package Id. Relates to #31168 --- This might fix the issue linked, but I'd like to test it with more choco commands before closing the issue in case I find other problems if that's ok. I'm pretty inexperienced with Go, so feel free to nitpick things. Not sure I handled [this](https://github.com/tdesveaux/gitea/blob/70f87e11b5caf1ee441ae71c7eba1831f45897d4/routers/api/packages/nuget/nuget.go#L135-L137) in the best way, so looking for feedback on if I should fix the underlying issue (`nil` might be a better default for `Value`?). Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Fix overflow on push notification (#31179) (#31238)Giteabot2024-06-041-2/+2
| | | | | | | | | | Backport #31179 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/30063 <img width="1301" alt="Screenshot 2024-05-30 at 14 43 24" src="https://github.com/go-gitea/gitea/assets/115237/00443af0-088d-49a5-be9e-8c9adcc2c01d"> Co-authored-by: silverwind <me@silverwind.io>
* Remove .segment from .project-column (#31204) (#31239)Giteabot2024-06-042-1/+2
| | | | | | | | | | Backport #31204 by @silverwind Using `.segment` on the project columns is a major abuse of that class, so remove it and instead set the border-radius directly on it. Fixes: https://github.com/go-gitea/gitea/issues/31129 Co-authored-by: silverwind <me@silverwind.io>
* Fix overflow on notifications (#31178) (#31237)Giteabot2024-06-041-2/+2
| | | | | | | | | | Backport #31178 by @silverwind Fixes https://github.com/go-gitea/gitea/issues/31170. <img width="1312" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/627711ed-93ca-4be6-b958-10d673ae9517"> Co-authored-by: silverwind <me@silverwind.io>
* Update air package path (#31233) (#31236)Giteabot2024-06-041-1/+1
|
* Fix overflow in issue card (#31203) (#31225)Giteabot2024-06-031-1/+1
| | | | | | | | | | | | | | Backport #31203 by @silverwind Before: <img width="373" alt="Screenshot 2024-06-01 at 01 31 26" src="https://github.com/go-gitea/gitea/assets/115237/82a210f2-c82e-4b7e-ac43-e70e46fa1186"> After: <img width="376" alt="Screenshot 2024-06-01 at 01 31 32" src="https://github.com/go-gitea/gitea/assets/115237/82d1b9f7-4fad-47bd-948a-04e1e7e006e6"> Co-authored-by: silverwind <me@silverwind.io>
* Fix agit checkout command line hint & fix ShowMergeInstructions checking ↵Giteabot2024-06-032-9/+10
| | | | | | | | | | | | | | | | | (#31219) (#31222) Backport #31219 by @lunny Fix #31135 Before <img width="527" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/60c07b55-3db2-4a9a-98f1-0eb72d149df2"> After <img width="664" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/0670ff5d-9e0b-47ac-aba4-9db9131de3b3"> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix the possible migration failure on 286 with postgres 16 (#31209) (#31218)Giteabot2024-06-021-1/+1
| | | | | | | Backport #31209 by @lunny Try to fix #31205 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>