aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Split sanitizer functions and fine-tune some tests (#31192) (#31200)Giteabot2024-05-318-245/+270
| | | | | Backport #31192 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix URL In Gitea Actions Badge Docs (#31191) (#31198)Giteabot2024-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | Backport #31191 by @TheBrokenRail The example URL given in the documentation leads to a 404. For instance, `https://your-gitea-instance.com/{owner}/{repo}/actions/workflows/{workflow_file}?branch={branch}&event={event}` translates to `https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/actions/workflows/build.yml`, which is a 404. I had to check the [linked GitHub docs](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge) to learn that you have to add `/badge.svg` to the URL. Example: https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/actions/workflows/build.yml/badge.svg Co-authored-by: TheBrokenRail <17478432+TheBrokenRail@users.noreply.github.com>
* Fix branch order (#31174) (#31193)Giteabot2024-05-311-8/+4
| | | | | | | | | | Backport #31174 by @lunny Fix #31172 The original order or the default order should not be ignored even if we have an is_deleted order. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix push multiple branches error with tests (#31151) (#31153)Giteabot2024-05-303-1/+54
| | | | | | | | | | | | | Backport #31151 by @lunny Fix #31140 The previous logic is wrong when pushing multiple branches. After first branch updated, it will ignore left other branches sync operations. As a workaround for the repositories, just push a new commit after the patch applied will fix the repositories status. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Ignore FindRecentlyPushedNewBranches err (#31164) (#31171)wxiaoguang2024-05-301-2/+1
| | | Backport #31164
* Swap word order in Comment and Close (#31148) (#31165)Giteabot2024-05-301-2/+2
| | | | | | | | | | | | | | | Backport #31148 by @techknowlogick Reduce accident closing of tickets only to re-open them right away. This aligns the text on these buttons with what GitHub has. Commit is authored by @LazyDodo, and was committed to the Blender fork by @brechtvl Background details: https://projects.blender.org/infrastructure/gitea-custom/pulls/7 Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-authored-by: Ray Molenkamp <github@lazydodo.com>
* Fix markup preview (#31158) (#31166)Giteabot2024-05-301-2/+3
| | | | | | | | | | | | Backport #31158 by @wxiaoguang Fix #31157 After: ![image](https://github.com/go-gitea/gitea/assets/2114189/4d918cce-cd0d-4601-9c81-4b32df1b0b38) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Use vertical layout for multiple code expander buttons (#31122) (#31152)Giteabot2024-05-294-16/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #31122 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/31068 - Now it only does a single call to `GetExpandDirection` per line instead of multiples. - Exposed `data-expand-direction` to frontend so it can correctly size the buttons (it's a pain to do in tables). <img width="142" alt="Screenshot 2024-05-27 at 20 44 56" src="https://github.com/go-gitea/gitea/assets/115237/8b0b45a6-8e50-4081-8822-5e0775d8d941"> <img width="142" alt="Screenshot 2024-05-27 at 20 44 51" src="https://github.com/go-gitea/gitea/assets/115237/b7ba2c57-8f55-4e9f-9606-c96d16b77892"> <img width="132" alt="Screenshot 2024-05-27 at 20 44 46" src="https://github.com/go-gitea/gitea/assets/115237/0e838fb8-5e8c-4250-9843-a68b88d5418b"> <img width="80" alt="Screenshot 2024-05-27 at 20 44 33" src="https://github.com/go-gitea/gitea/assets/115237/da6c7f83-c160-4389-8ab2-889d0568cbe8"> <img width="80" alt="Screenshot 2024-05-27 at 20 44 26" src="https://github.com/go-gitea/gitea/assets/115237/cdb490b2-5040-484a-92e5-46fc5e37c199"> <img width="78" alt="Screenshot 2024-05-27 at 20 44 20" src="https://github.com/go-gitea/gitea/assets/115237/d2978ab0-764e-41ff-922c-25f8fe749f28"> Would backport as trivial enhancement. Co-authored-by: silverwind <me@silverwind.io>
* Add an immutable tarball link to archive download headers for Nix (#31139) ↵Giteabot2024-05-293-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#31145) Backport #31139 by @Mic92 This allows `nix flake metadata` and nix in general to lock a *branch* tarball link in a manner that causes it to fetch the correct commit even if the branch is updated with a newer version. For further context, Nix flakes are a feature that, among other things, allows for "inputs" that are "github:someuser/somerepo", "https://some-tarball-service/some-tarball.tar.gz", "sourcehut:~meow/nya" or similar. This feature allows our users to fetch tarballs of git-based inputs to their builds rather than using git to fetch them, saving significant download time. There is presently no gitea or forgejo specific fetcher in Nix, and we don't particularly wish to have one. Ideally (as a developer on a Nix implementation myself) we could just use the generic tarball fetcher and not add specific forgejo support, but to do so, we need additional metadata to know which commit a given *branch* tarball represents, which is the purpose of the Link header added here. The result of this patch is that a Nix user can specify `inputs.something.url = "https://forgejo-host/some/project/archive/main.tar.gz"` in flake.nix and get a link to some concrete tarball for the actual commit in the lock file, then when they run `nix flake update` in the future, they will get the latest commit in that branch. Example of it working locally: » nix flake metadata --refresh 'http://localhost:3000/api/v1/repos/jade/cats/archive/main.tar.gz?dir=configs/nix' Resolved URL: http://localhost:3000/api/v1/repos/jade/cats/archive/main.tar.gz?dir=configs/nix Locked URL: http://localhost:3000/api/v1/repos/jade/cats/archive/804ede182b6b66469b23ea4d21eece52766b7a06.tar.gz?dir=configs /nix&narHash=sha256-yP7KkDVfuixZzs0fsqhSETXFC0y8m6nmPLw2GrAMxKQ%3D Description: Computers with the nixos Path: /nix/store/s856c6yqghyan4v0zy6jj19ksv0q22nx-source Revision: 804ede182b6b66469b23ea4d21eece52766b7a06 Last modified: 2024-05-02 00:48:32 For details on the header value, see: https://github.com/nixos/nix/blob/56763ff918eb308db23080e560ed2ea3e00c80a7/doc/manual/src/protocols/tarball-fetcher.md Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com> Co-authored-by: Jade Lovelace <software@lfcode.ca> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Update demo site location from try.gitea.io -> demo.gitea.com (#31054) (#31146)Giteabot2024-05-2917-37/+30
| | | | | Backport #31054 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Remove duplicate `ProxyPreserveHost` in Apache httpd doc (#31143) (#31147)Giteabot2024-05-291-1/+0
| | | | | | | | | Backport #31143 by @HorlogeSkynet --- (fix up for #31003) Co-authored-by: Samuel FORESTIER <HorlogeSkynet@users.noreply.github.com>
* Improve mobile review ui (#31091) (#31136)Giteabot2024-05-287-112/+69
| | | | | | | | | | | | | | | | | | Backport #31091 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/31071 Not perfect but much better than before. Before: Overflows, sticky not working, filename unreadable: <img width="506" alt="Screenshot 2024-05-27 at 02 02 40" src="https://github.com/go-gitea/gitea/assets/115237/a06b1edf-dece-4402-98c2-68670fca265f"> After: <img width="457" alt="Screenshot 2024-05-27 at 01 59 06" src="https://github.com/go-gitea/gitea/assets/115237/2a282c96-e719-4554-b418-81963ae6269c"> Co-authored-by: silverwind <me@silverwind.io>
* Add missed return after `ctx.ServerError` (#31130) (#31133)Giteabot2024-05-285-0/+5
| | | | | Backport #31130 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix API repository object format missed (#31118) (#31132)Giteabot2024-05-281-0/+1
| | | | | | | Backport #31118 by @lunny Fix #31117 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix DashboardRepoList margin (#31121) (#31128)Giteabot2024-05-281-2/+0
| | | | | | | | | | Backport #31121 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/31115 <img width="476" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/ba508ba9-b02d-47c6-ad9f-495101c81330"> Co-authored-by: silverwind <me@silverwind.io>
* Move documents under actions (#31110) (#31116)Giteabot2024-05-273-9/+3
| | | | | | | Backport #31110 by @lunny Move secrets and badge under actions Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix missing memcache import (#31105) (#31109)Giteabot2024-05-271-0/+2
| | | | | Backport #31105 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Update pip related commands for docker (#31106) (#31111)Giteabot2024-05-272-8/+4
| | | | | Backport #31106 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add v1.22.0 changelog (#31060)v1.22.0Lunny Xiao2024-05-271-0/+166
|
* Prevent tab shifting, remove extra margin on fluid pages (#31090) (#31099)Giteabot2024-05-276-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #31090 by @silverwind 1. Extend concept of https://github.com/go-gitea/gitea/pull/29831 to all tabular menus, there were only three left that weren't already `<overflow-menu>`. <img width="634" alt="Screenshot 2024-05-27 at 00 42 16" src="https://github.com/go-gitea/gitea/assets/115237/d9a7e219-d05e-40a1-9e93-777f9a8a90dd"> <img width="965" alt="Screenshot 2024-05-27 at 00 29 32" src="https://github.com/go-gitea/gitea/assets/115237/e6ed71b1-11fb-4a74-9adb-af4524286cff"> 2. Remove extra padding on `fluid padded` container like for example PR diff view. The page margin is already correctly sized via `.ui.container`, so this was just extraneous padding that looked ugly. Before: <img width="1351" alt="Screenshot 2024-05-27 at 00 45 11" src="https://github.com/go-gitea/gitea/assets/115237/4b45fd11-b1b2-4fbb-a618-26eb22be9472"> After: <img width="1344" alt="Screenshot 2024-05-27 at 00 45 22" src="https://github.com/go-gitea/gitea/assets/115237/d09593eb-6c7f-45e7-85b6-f0050047004b"> 3. Replace `gt-word-break` with `tw-break-anywhere` in issue-title, fixing overflow. Before: <img width="1333" alt="Screenshot 2024-05-27 at 00 50 14" src="https://github.com/go-gitea/gitea/assets/115237/64d15d04-b456-401e-a972-df636965f0eb"> After: <img width="1316" alt="Screenshot 2024-05-27 at 00 50 26" src="https://github.com/go-gitea/gitea/assets/115237/ed1ce830-1408-414b-8263-eeaf773f52c8"> Co-authored-by: silverwind <me@silverwind.io>
* Fix border radius on hovered secondary menu (#31089) (#31097)Giteabot2024-05-271-1/+4
| | | | | | | | | | | | Backport #31089 by @silverwind Presumably a regression from https://github.com/go-gitea/gitea/pull/30325, these menus were showing a border radius on hover, which is fixed with this change. <img width="154" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/eafdc1c5-3cf5-48d1-86c4-21c58f92cfaf"> Co-authored-by: silverwind <me@silverwind.io>
* Fix possible ui 500 if workflow's job is nil (#31092) (#31098)Giteabot2024-05-272-0/+9
| | | | | | | Backport #31092 by @lunny Fix #31087 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix `View File` button link if branch deleted on pull request files pages ↵Giteabot2024-05-261-1/+1
| | | | (#31063) (#31077)
* Change `--border-radius-circle` to `--border-radius-full` (#30936) (#31078)Giteabot2024-05-264-5/+5
|
* Make gitea webhooks openproject compatible (#28435) (#31081)Giteabot2024-05-268-23/+102
| | | | | Backport #28435 by Chief-Detektor Co-authored-by: André Rosenhammer <andre.rosenhammer@gmail.com>
* Support setting the `default` attribute of the issue template dropdown field ↵Giteabot2024-05-243-1/+118
| | | | | | | | | | | | | | (#31045) (#31059) Backport #31045 by @Zettat123 Fix #31044 According to [GitHub issue template documentation](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema#attributes-for-dropdown), the `default` attribute can be used to specify the preselected option for a dropdown field. Co-authored-by: Zettat123 <zettat123@gmail.com>
* Alpine 3.20 has been released (#31047) (#31057)Giteabot2024-05-232-4/+4
| | | | | Backport #31047 by @techknowlogick Co-authored-by: techknowlogick <techknowlogick@gitea.com>