]> source.dussan.org Git - gitea.git/log
gitea.git
4 months agoFix and clean up `ConfirmModal` (#31283) (#31291)
Giteabot [Fri, 7 Jun 2024 13:51:54 +0000 (21:51 +0800)]
Fix and clean up `ConfirmModal` (#31283) (#31291)

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>
4 months agoOptimize repo-list layout to enhance visual experience (#31272) (#31276)
Giteabot [Fri, 7 Jun 2024 04:37:47 +0000 (12:37 +0800)]
Optimize repo-list layout to enhance visual experience (#31272) (#31276)

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>
4 months agofixed the dropdown menu for the top New button to expand to the left (#31273) (#31275)
Giteabot [Fri, 7 Jun 2024 02:19:00 +0000 (10:19 +0800)]
fixed the dropdown menu for the top New button to expand to the left (#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>
4 months agoFix Activity Page Contributors dropdown (#31264) (#31269)
Giteabot [Thu, 6 Jun 2024 08:14:00 +0000 (16:14 +0800)]
Fix Activity Page Contributors dropdown (#31264) (#31269)

Backport #31264 by wxiaoguang

Fix #31261

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoAdd replacement module for `mholt/archiver` (#31267) (#31270)
Giteabot [Thu, 6 Jun 2024 04:04:47 +0000 (12:04 +0800)]
Add replacement module for `mholt/archiver` (#31267) (#31270)

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>
4 months agoOptimize runner-tags layout to enhance visual experience (#31258) (#31263)
Giteabot [Wed, 5 Jun 2024 20:35:36 +0000 (04:35 +0800)]
Optimize runner-tags layout to enhance visual experience (#31258) (#31263)

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>
4 months agofix: allow actions artifacts storage migration to complete succesfully (#31251) ...
Giteabot [Wed, 5 Jun 2024 08:25:48 +0000 (16:25 +0800)]
fix: allow actions artifacts storage migration to complete succesfully (#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>
4 months agoMake blockquote attention recognize more syntaxes (#31240) (#31250)
Giteabot [Tue, 4 Jun 2024 16:03:01 +0000 (00:03 +0800)]
Make blockquote attention recognize more syntaxes (#31240) (#31250)

Backport #31240 by wxiaoguang

Fix #31214

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoFix admin oauth2 custom URL settings (#31246) (#31247)
Giteabot [Tue, 4 Jun 2024 15:11:07 +0000 (23:11 +0800)]
Fix admin oauth2 custom URL settings (#31246) (#31247)

Backport #31246 by wxiaoguang

Fix #31244

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoMake pasted "img" tag has the same behavior as markdown image (#31235) (#31243)
Giteabot [Tue, 4 Jun 2024 13:26:55 +0000 (21:26 +0800)]
Make pasted "img" tag has the same behavior as markdown image (#31235) (#31243)

Backport #31235 by wxiaoguang

Fix #31230

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 months agoFix NuGet Package API for $filter with Id equality (#31188) (#31242)
Thomas Desveaux [Tue, 4 Jun 2024 11:56:59 +0000 (13:56 +0200)]
Fix NuGet Package API for $filter with Id equality (#31188) (#31242)

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>
4 months agoFix overflow on push notification (#31179) (#31238)
Giteabot [Tue, 4 Jun 2024 10:15:25 +0000 (18:15 +0800)]
Fix overflow on push notification (#31179) (#31238)

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>
4 months agoRemove .segment from .project-column (#31204) (#31239)
Giteabot [Tue, 4 Jun 2024 09:45:50 +0000 (17:45 +0800)]
Remove .segment from .project-column (#31204) (#31239)

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>
4 months agoFix overflow on notifications (#31178) (#31237)
Giteabot [Tue, 4 Jun 2024 09:17:00 +0000 (17:17 +0800)]
Fix overflow on notifications (#31178) (#31237)

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>
4 months agoUpdate air package path (#31233) (#31236)
Giteabot [Tue, 4 Jun 2024 05:28:21 +0000 (13:28 +0800)]
Update air package path (#31233) (#31236)

4 months agoFix overflow in issue card (#31203) (#31225)
Giteabot [Mon, 3 Jun 2024 02:14:15 +0000 (10:14 +0800)]
Fix overflow in issue card (#31203) (#31225)

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>
4 months agoFix agit checkout command line hint & fix ShowMergeInstructions checking (#31219...
Giteabot [Mon, 3 Jun 2024 01:45:57 +0000 (09:45 +0800)]
Fix agit checkout command line hint & fix ShowMergeInstructions checking (#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>
4 months agoFix the possible migration failure on 286 with postgres 16 (#31209) (#31218)
Giteabot [Sun, 2 Jun 2024 07:19:30 +0000 (15:19 +0800)]
Fix the possible migration failure on 286 with postgres 16 (#31209) (#31218)

Backport #31209 by @lunny

Try to fix #31205

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 months agoSplit sanitizer functions and fine-tune some tests (#31192) (#31200)
Giteabot [Fri, 31 May 2024 13:54:14 +0000 (21:54 +0800)]
Split sanitizer functions and fine-tune some tests (#31192) (#31200)

Backport #31192 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoFix URL In Gitea Actions Badge Docs (#31191) (#31198)
Giteabot [Fri, 31 May 2024 13:08:04 +0000 (21:08 +0800)]
Fix URL In Gitea Actions Badge Docs (#31191) (#31198)

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>
4 months agoFix branch order (#31174) (#31193)
Giteabot [Fri, 31 May 2024 03:34:05 +0000 (11:34 +0800)]
Fix branch order (#31174) (#31193)

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>
4 months agoFix push multiple branches error with tests (#31151) (#31153)
Giteabot [Thu, 30 May 2024 07:04:42 +0000 (15:04 +0800)]
Fix push multiple branches error with tests (#31151) (#31153)

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>
4 months agoIgnore FindRecentlyPushedNewBranches err (#31164) (#31171)
wxiaoguang [Thu, 30 May 2024 06:24:14 +0000 (14:24 +0800)]
Ignore FindRecentlyPushedNewBranches err (#31164) (#31171)

Backport #31164

4 months agoSwap word order in Comment and Close (#31148) (#31165)
Giteabot [Thu, 30 May 2024 01:07:27 +0000 (09:07 +0800)]
Swap word order in Comment and Close (#31148) (#31165)

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>
4 months agoFix markup preview (#31158) (#31166)
Giteabot [Thu, 30 May 2024 00:38:30 +0000 (08:38 +0800)]
Fix markup preview (#31158) (#31166)

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>
4 months agoUse vertical layout for multiple code expander buttons (#31122) (#31152)
Giteabot [Wed, 29 May 2024 07:06:34 +0000 (15:06 +0800)]
Use vertical layout for multiple code expander buttons (#31122) (#31152)

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>
4 months agoAdd an immutable tarball link to archive download headers for Nix (#31139) (#31145)
Giteabot [Wed, 29 May 2024 01:34:14 +0000 (09:34 +0800)]
Add an immutable tarball link to archive download headers for Nix (#31139) (#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>
4 months agoUpdate demo site location from try.gitea.io -> demo.gitea.com (#31054) (#31146)
Giteabot [Wed, 29 May 2024 01:05:07 +0000 (09:05 +0800)]
Update demo site location from try.gitea.io -> demo.gitea.com (#31054) (#31146)

Backport #31054 by @lunny

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 months agoRemove duplicate `ProxyPreserveHost` in Apache httpd doc (#31143) (#31147)
Giteabot [Wed, 29 May 2024 00:54:14 +0000 (08:54 +0800)]
Remove duplicate `ProxyPreserveHost` in Apache httpd doc (#31143) (#31147)

Backport #31143 by @HorlogeSkynet

---

(fix up for #31003)

Co-authored-by: Samuel FORESTIER <HorlogeSkynet@users.noreply.github.com>
4 months agoImprove mobile review ui (#31091) (#31136)
Giteabot [Tue, 28 May 2024 14:10:01 +0000 (22:10 +0800)]
Improve mobile review ui (#31091) (#31136)

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>
4 months agoAdd missed return after `ctx.ServerError` (#31130) (#31133)
Giteabot [Tue, 28 May 2024 10:47:11 +0000 (18:47 +0800)]
Add missed return after `ctx.ServerError` (#31130) (#31133)

Backport #31130 by @lunny

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 months agoFix API repository object format missed (#31118) (#31132)
Giteabot [Tue, 28 May 2024 09:59:56 +0000 (17:59 +0800)]
Fix API repository object format missed (#31118) (#31132)

Backport #31118 by @lunny

Fix #31117

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 months agoFix DashboardRepoList margin (#31121) (#31128)
Giteabot [Tue, 28 May 2024 09:12:15 +0000 (17:12 +0800)]
Fix DashboardRepoList margin (#31121) (#31128)

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>
4 months agoMove documents under actions (#31110) (#31116)
Giteabot [Mon, 27 May 2024 15:05:49 +0000 (23:05 +0800)]
Move documents under actions (#31110) (#31116)

Backport #31110 by @lunny

Move secrets and badge under actions

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 months agoFix missing memcache import (#31105) (#31109)
Giteabot [Mon, 27 May 2024 14:23:47 +0000 (22:23 +0800)]
Fix missing memcache import (#31105) (#31109)

Backport #31105 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoUpdate pip related commands for docker (#31106) (#31111)
Giteabot [Mon, 27 May 2024 13:54:19 +0000 (21:54 +0800)]
Update pip related commands for docker (#31106) (#31111)

Backport #31106 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoAdd v1.22.0 changelog (#31060) v1.22.0
Lunny Xiao [Mon, 27 May 2024 07:51:53 +0000 (15:51 +0800)]
Add v1.22.0 changelog (#31060)

4 months agoPrevent tab shifting, remove extra margin on fluid pages (#31090) (#31099)
Giteabot [Mon, 27 May 2024 07:41:10 +0000 (15:41 +0800)]
Prevent tab shifting, remove extra margin on fluid pages (#31090) (#31099)

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>
4 months agoFix border radius on hovered secondary menu (#31089) (#31097)
Giteabot [Mon, 27 May 2024 07:07:16 +0000 (15:07 +0800)]
Fix border radius on hovered secondary menu (#31089) (#31097)

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>
4 months agoFix possible ui 500 if workflow's job is nil (#31092) (#31098)
Giteabot [Mon, 27 May 2024 06:13:15 +0000 (14:13 +0800)]
Fix possible ui 500 if workflow's job is nil (#31092) (#31098)

Backport #31092 by @lunny

Fix #31087

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 months agoFix `View File` button link if branch deleted on pull request files pages (#31063...
Giteabot [Sun, 26 May 2024 14:07:17 +0000 (22:07 +0800)]
Fix `View File` button link if branch deleted on pull request files pages (#31063) (#31077)

4 months agoChange `--border-radius-circle` to `--border-radius-full` (#30936) (#31078)
Giteabot [Sun, 26 May 2024 13:16:13 +0000 (21:16 +0800)]
Change `--border-radius-circle` to `--border-radius-full` (#30936) (#31078)

4 months agoMake gitea webhooks openproject compatible (#28435) (#31081)
Giteabot [Sun, 26 May 2024 04:53:42 +0000 (12:53 +0800)]
Make gitea webhooks openproject compatible (#28435) (#31081)

Backport #28435 by Chief-Detektor

Co-authored-by: André Rosenhammer <andre.rosenhammer@gmail.com>
4 months agoSupport setting the `default` attribute of the issue template dropdown field (#31045...
Giteabot [Fri, 24 May 2024 03:01:09 +0000 (11:01 +0800)]
Support setting the `default` attribute of the issue template dropdown field (#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>
4 months agoAlpine 3.20 has been released (#31047) (#31057)
Giteabot [Thu, 23 May 2024 12:36:34 +0000 (20:36 +0800)]
Alpine 3.20 has been released (#31047) (#31057)

Backport #31047 by @techknowlogick

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
4 months agoFix wrong display of recently pushed notification (#25812) (#31043)
yp05327 [Thu, 23 May 2024 04:14:26 +0000 (13:14 +0900)]
Fix wrong display of recently pushed notification (#25812) (#31043)

Backport #25812

~~ps: removed some new codes in `tests/integration/pull_merge_test.go`~~

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoalign s3 files with docker naming (#31050) (#31052)
Giteabot [Thu, 23 May 2024 00:06:52 +0000 (08:06 +0800)]
align s3 files with docker naming (#31050) (#31052)

4 months agoUpdate Actions documentation missing feature (#31034) (#31048)
Giteabot [Wed, 22 May 2024 15:04:40 +0000 (23:04 +0800)]
Update Actions documentation missing feature (#31034) (#31048)

Backport #31034 by @lunny

Fix
https://github.com/go-gitea/gitea/issues/25897#issuecomment-2117145391

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: yp05327 <576951401@qq.com>
4 months agoSync up deleted branches & action assets related cleanup documentation (#31022) ...
Giteabot [Wed, 22 May 2024 15:02:34 +0000 (23:02 +0800)]
Sync up deleted branches & action assets related cleanup documentation (#31022) (#31049)

Backport #31022 by @kemzeb

Syncs up docs associated to actions and deleted branch cleanup i.e. in
custom/app.example.ini and the config cheat sheet.

Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com>
4 months agoFix automerge will not work because of some events haven't been triggered (#30780...
Giteabot [Wed, 22 May 2024 02:08:05 +0000 (10:08 +0800)]
Fix automerge will not work because of some events haven't been triggered (#30780) (#31039)

Backport #30780 by @lunny

Replace #25741
Close #24445
Close #30658
Close #20646
~Depends on #30805~

Since #25741 has been rewritten totally, to make the contribution
easier, I will continue the work in this PR. Thanks @6543

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agouse existing oauth grant for public client (#31015) (#31042)
Giteabot [Tue, 21 May 2024 17:32:31 +0000 (01:32 +0800)]
use existing oauth grant for public client (#31015) (#31042)

Backport #31015 by @denyskon

Do not try to create a new authorization grant when one exists already,
thus preventing a DB-related authorization issue.

Fix https://github.com/go-gitea/gitea/pull/30790#issuecomment-2118812426

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 months agoDon't include link of deleted branch when listing branches (#31028) (#31032)
Giteabot [Tue, 21 May 2024 07:51:36 +0000 (15:51 +0800)]
Don't include link of deleted branch when listing branches (#31028) (#31032)

Backport #31028 by @kemzeb

From
https://github.com/go-gitea/gitea/issues/31018#issuecomment-2119622680.

This commit removes the link to a deleted branch name because it returns
a 404 while it is in this deleted state. GitHub also throws a 404 when
navigating to a branch link that was just deleted, but this deleted
branch is removed from the branch list after a page refresh. Since with
Gitea this deleted branch would be kept around for quite some time
(well, until the "cleanup deleted branches" cron job begins), it makes
sense to not have this as a link that users can navigate to.

Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com>
4 months agoRefactor sha1 and time-limited code (#31023) (#31030)
Giteabot [Mon, 20 May 2024 16:58:21 +0000 (00:58 +0800)]
Refactor sha1 and time-limited code (#31023) (#31030)

Backport #31023 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoReturn `access_denied` error when an OAuth2 request is denied (#30974) (#31029)
Giteabot [Mon, 20 May 2024 14:49:04 +0000 (22:49 +0800)]
Return `access_denied` error when an OAuth2 request is denied (#30974) (#31029)

Backport #30974 by Zettat123

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
4 months agoFix incorrect "blob excerpt" link when comparing files (#31013) (#31026)
Giteabot [Mon, 20 May 2024 07:40:14 +0000 (15:40 +0800)]
Fix incorrect "blob excerpt" link when comparing files (#31013) (#31026)

Backport #31013 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoAvoid 500 panic error when uploading invalid maven package file (#31014) (#31027)
Giteabot [Mon, 20 May 2024 07:10:27 +0000 (15:10 +0800)]
Avoid 500 panic error when uploading invalid maven package file (#31014) (#31027)

Backport #31014 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoFix project column title overflow (#31011) (#31025)
Giteabot [Mon, 20 May 2024 06:17:21 +0000 (14:17 +0800)]
Fix project column title overflow (#31011) (#31025)

Backport #31011 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoFix data-race during testing (#30999) (#31024)
Giteabot [Mon, 20 May 2024 05:49:24 +0000 (13:49 +0800)]
Fix data-race during testing (#30999) (#31024)

Backport #30999 by wxiaoguang

Fix #30992

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoFix bug on avatar (#31008) (#31019)
Giteabot [Mon, 20 May 2024 02:54:53 +0000 (10:54 +0800)]
Fix bug on avatar (#31008) (#31019)

Backport #31008 by @lunny

Extract from #30995

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
4 months agoFix "force private" logic (#31012) (#31021)
Giteabot [Mon, 20 May 2024 02:27:52 +0000 (10:27 +0800)]
Fix "force private" logic (#31012) (#31021)

Backport #31012 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
4 months agoImprove reverse proxy documents and clarify the AppURL guessing behavior (#31003...
Giteabot [Sun, 19 May 2024 15:22:54 +0000 (23:22 +0800)]
Improve reverse proxy documents and clarify the AppURL guessing behavior (#31003) (#31020)

Backport #31003 by wxiaoguang

Fix #31002

1. Mention Make sure `Host` and `X-Fowarded-Proto` headers are correctly passed to Gitea
2. Clarify the basic requirements and move the "general configuration" to the top
3. Add a comment for the "container registry"
4. Use 1.21 behavior if the reverse proxy is not correctly configured

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
4 months agoSimplify mirror repository API logic (#30963) (#31009)
Giteabot [Sat, 18 May 2024 08:26:20 +0000 (16:26 +0800)]
Simplify mirror repository API logic (#30963) (#31009)

Backport #30963 by wxiaoguang

Fix #30921

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoFix JS error when editing a merged PR's title (#30990) (#31001)
Giteabot [Fri, 17 May 2024 01:07:09 +0000 (09:07 +0800)]
Fix JS error when editing a merged PR's title (#30990) (#31001)

Backport #30990 by @wxiaoguang

Regression of Fix issue/PR title edit (#30858)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoUpgrade `tqdm` dependency (#30996) (#31000)
Giteabot [Fri, 17 May 2024 00:39:39 +0000 (08:39 +0800)]
Upgrade `tqdm` dependency (#30996) (#31000)

Backport #30996 by @silverwind

Result of `make update-py`

Fixes: https://github.com/go-gitea/gitea/security/dependabot/65
Co-authored-by: silverwind <me@silverwind.io>
5 months agotemplate: `label` fix correct input id (#30987) (#30997)
Giteabot [Thu, 16 May 2024 13:45:52 +0000 (21:45 +0800)]
template: `label` fix correct input id (#30987) (#30997)

Just a small commit to fix a wrong label for id.
Thanks and cheers!

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
Co-authored-by: Frank Villaro-Dixon <frank@vi-di.fr>
5 months agoPut web editor into a segment (#30966) (#30993)
Giteabot [Thu, 16 May 2024 07:03:45 +0000 (15:03 +0800)]
Put web editor into a segment (#30966) (#30993)

Backport #30966 by silverwind

Co-authored-by: silverwind <me@silverwind.io>
5 months agoCheck if the release is converted from the tag when updating the release (#30984...
Giteabot [Wed, 15 May 2024 21:34:38 +0000 (05:34 +0800)]
Check if the release is converted from the tag when updating the release (#30984) (#30986)

We should call `notify_service.NewRelease` when a release is created
from an existing tag.

Co-authored-by: Zettat123 <zettat123@gmail.com>
5 months agoRemove unnecessary double quotes on language file (#30977) (#30979)
Giteabot [Wed, 15 May 2024 09:00:58 +0000 (17:00 +0800)]
Remove unnecessary double quotes on language file (#30977) (#30979)

Backport #30977 by @lunny

The double quotes and the prefix/suffix space are unnecessary.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
5 months agoAlways load or generate oauth2 jwt secret (#30942) (#30978)
Giteabot [Tue, 14 May 2024 15:00:38 +0000 (23:00 +0800)]
Always load or generate oauth2 jwt secret (#30942) (#30978)

Backport #30942 by @wxiaoguang

 Fix #30923

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoFilter out duplicate action(activity) items for a repository (#30957) (#30976)
Giteabot [Tue, 14 May 2024 14:14:39 +0000 (22:14 +0800)]
Filter out duplicate action(activity) items for a repository (#30957) (#30976)

Backport #30957

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoProtected tag is no internal server error (#30962) (#30970)
Giteabot [Tue, 14 May 2024 07:15:36 +0000 (15:15 +0800)]
Protected tag is no internal server error (#30962) (#30970)

Backport #30962 by @KN4CK3R

Fixes #30959

Adds an API test for protected tags.
Fix existing tag in combination with fixtures.

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
5 months agoRestyle release list, fix branch dropdown (#30837) (#30968)
Giteabot [Mon, 13 May 2024 22:00:52 +0000 (06:00 +0800)]
Restyle release list, fix branch dropdown (#30837) (#30968)

Backport #30837 by @silverwind

Fixes https://github.com/go-gitea/gitea/issues/30821 and restyles the
release list.

Desktop:

<img width="1199" alt="Screenshot 2024-05-02 at 20 46 10"
src="https://github.com/go-gitea/gitea/assets/115237/bee92423-d4a9-4b26-8301-3a1e09eef4cd">

Mobile:

<img width="443" alt="Screenshot 2024-05-02 at 20 46 21"
src="https://github.com/go-gitea/gitea/assets/115237/42ecbae5-bdb6-4b16-a0ee-9c64daede68d">

Co-authored-by: silverwind <me@silverwind.io>
5 months agofix: change npm scope registry (#30964) (#30965)
Giteabot [Mon, 13 May 2024 16:14:31 +0000 (00:14 +0800)]
fix: change npm scope registry (#30964) (#30965)

Backport #30964 by @llxlr

https://docs.npmjs.com/cli/v10/using-npm/scope#associating-a-scope-with-a-registry

Co-authored-by: james yang <yanghongday369@gmail.com>
5 months agoSupport using label names when changing issue labels (#30943) (#30958)
Giteabot [Mon, 13 May 2024 06:28:11 +0000 (14:28 +0800)]
Support using label names when changing issue labels (#30943) (#30958)

Backport #30943 by @Zettat123

Resolve #30917

Make the APIs for adding labels and replacing labels support both label
IDs and label names so the
[`actions/labeler`](https://github.com/actions/labeler) action can work
in Gitea.

<img width="600px"
src="https://github.com/go-gitea/gitea/assets/15528715/7835c771-f637-4c57-9ce5-e4fbf56fa0d3"
/>

Co-authored-by: Zettat123 <zettat123@gmail.com>
5 months agoFix file path width in repo non-homepage view (#30951) (#30952)
Giteabot [Sun, 12 May 2024 12:07:16 +0000 (20:07 +0800)]
Fix file path width in repo non-homepage view (#30951) (#30952)

Backport #30951 by @silverwind

Fixes: https://github.com/go-gitea/gitea/issues/30940
<img width="1310" alt="Screenshot 2024-05-11 at 20 48 41"
src="https://github.com/go-gitea/gitea/assets/115237/f163dfd4-1299-421f-a99e-cd0c793e0e3d">

Co-authored-by: silverwind <me@silverwind.io>
5 months agoRemove If Exist check on migration for mssql because that syntax required SQL server...
Giteabot [Sun, 12 May 2024 03:15:01 +0000 (11:15 +0800)]
Remove If Exist check on migration for mssql because that syntax required SQL server 2016 (#30894) (#30946)

Backport #30894 by @lunny

Fix #30872

We will assume the database is consistent before executing the
migration. So the indexes should exist. Removing `IF EXIST` then is safe
enough.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
5 months agoMove reverproxyauth before session so the header will not be ignored even if user...
Giteabot [Sun, 12 May 2024 02:25:55 +0000 (10:25 +0800)]
Move reverproxyauth before session so the header will not be ignored even if user has login (#27821) (#30948)

Backport #27821 by @lunny

When a user logout and then login another user, the reverseproxy auth
should be checked before session otherwise the old user is still login.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 months agoFix some UI regressions for commit list (#30920) (#30937)
Giteabot [Fri, 10 May 2024 14:36:06 +0000 (22:36 +0800)]
Fix some UI regressions for commit list (#30920) (#30937)

Backport #30920 by wxiaoguang

Close #30919

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
5 months agoCheck if reverse proxy is correctly configured (#30890) (#30935)
Giteabot [Fri, 10 May 2024 12:34:04 +0000 (20:34 +0800)]
Check if reverse proxy is correctly configured (#30890) (#30935)

Backport #30890 by wxiaoguang

Follow #27011
Follow #30885

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
5 months agoFix incorrect default branch when adopt a repository (#30912) (#30928)
yp05327 [Fri, 10 May 2024 12:00:01 +0000 (21:00 +0900)]
Fix incorrect default branch when adopt a repository (#30912) (#30928)

Backport #30912

ps: removed useless `u *user_model.User` for `adoptRepository`

5 months agoRemove deprecated stuff for runners (#30930) (#30931)
Giteabot [Fri, 10 May 2024 08:57:30 +0000 (16:57 +0800)]
Remove deprecated stuff for runners (#30930) (#30931)

Backport #30930 by @wolfogre

It's time (maybe somewhat late) to remove some deprecated stuff for the
runner.

- `x-runner-version`: runners needn't to report version in every
request, they will call `Declare`.
- `AgentLabels`: runners will report them as `Labels`.

Co-authored-by: Jason Song <i@wolfogre.com>
5 months agoUpdate issue indexer after merging a PR (#30715) (#30903)
Giteabot [Thu, 9 May 2024 05:51:57 +0000 (13:51 +0800)]
Update issue indexer after merging a PR (#30715) (#30903)

Backport #30715 by @Zettat123

Fix #30684

Co-authored-by: Zettat123 <zettat123@gmail.com>
5 months agoAdd missing menu active item background back (#30897) (#30907)
Giteabot [Wed, 8 May 2024 23:53:02 +0000 (07:53 +0800)]
Add missing menu active item background back (#30897) (#30907)

Backport #30897 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoFix incorrect issue form (#30881) (#30904)
Giteabot [Wed, 8 May 2024 23:26:53 +0000 (07:26 +0800)]
Fix incorrect issue form (#30881) (#30904)

Backport #30881 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoFix misspelling of mergable (#30896) (#30905)
Giteabot [Wed, 8 May 2024 16:38:46 +0000 (00:38 +0800)]
Fix misspelling of mergable (#30896) (#30905)

Backport #30896 by @yp05327

https://github.com/go-gitea/gitea/pull/25812#issuecomment-2099833692
Follow #30573

Co-authored-by: yp05327 <576951401@qq.com>
5 months agoFix various problems around projects board view (#30696) (#30902)
Giteabot [Wed, 8 May 2024 15:46:21 +0000 (23:46 +0800)]
Fix various problems around projects board view (#30696) (#30902)

Backport #30696 by @lunny

# The problem
The previous implementation will start multiple POST requests from the
frontend when moving a column and another bug is moving the default
column will never be remembered in fact.

# What's changed

- [x] This PR will allow the default column to move to a non-first
position
- [x] And it also uses one request instead of multiple requests when
moving the columns
- [x] Use a star instead of a pin as the icon for setting the default
column action
- [x] Inserted new column will be append to the end
- [x] Fix #30701 the newly added issue will be append to the end of the
default column
- [x] Fix when deleting a column, all issues in it will be displayed
from UI but database records exist.
- [x] Add a limitation for columns in a project to 20. So the sorting
will not be overflow because it's int8.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoFix wrong transfer hint (#30889) (#30900)
Giteabot [Wed, 8 May 2024 15:12:37 +0000 (23:12 +0800)]
Fix wrong transfer hint (#30889) (#30900)

Backport #30889 by @lunny

Fix #30187

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 months agoMove database operations of merging a pull request to post receive hook and add a...
Giteabot [Wed, 8 May 2024 14:17:18 +0000 (22:17 +0800)]
Move database operations of merging a pull request to post receive hook and add a transaction (#30805) (#30888)

Backport #30805 by @lunny

Merging PR may fail because of various problems. The pull request may
have a dirty state because there is no transaction when merging a pull
request. ref
https://github.com/go-gitea/gitea/pull/25741#issuecomment-2074126393

This PR moves all database update operations to post-receive handler for
merging a pull request and having a database transaction. That means if
database operations fail, then the git merging will fail, the git client
will get a fail result.

There are already many tests for pull request merging, so we don't need
to add a new one.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoRefactor AppURL usage (#30885) (#30891)
wxiaoguang [Wed, 8 May 2024 13:34:43 +0000 (21:34 +0800)]
Refactor AppURL usage (#30885) (#30891)

Backport #30885
Fix #30883
Fix #29591

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
5 months agoRepository explore alphabetically order respect owner name (#30882)
6543 [Tue, 7 May 2024 16:35:02 +0000 (18:35 +0200)]
Repository explore alphabetically order respect owner name (#30882)

similar to #30784 but only for the repo explore page

is covered by #30876 for the main branch

5 months agoFix missing migrate actions artifacts (#30874) (#30886)
Giteabot [Tue, 7 May 2024 13:59:00 +0000 (21:59 +0800)]
Fix missing migrate actions artifacts (#30874) (#30886)

Backport #30874 by @lunny

The actions artifacts should be able to be migrate to the new storage
place.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 months agoMake sure git version&feature are always prepared (#30877) (#30879)
wxiaoguang [Tue, 7 May 2024 02:07:33 +0000 (10:07 +0800)]
Make sure git version&feature are always prepared (#30877) (#30879)

Backport #30877

5 months agoMake "sync branch" also sync object format and add tests (#30878) (#30880)
Giteabot [Tue, 7 May 2024 00:33:28 +0000 (08:33 +0800)]
Make "sync branch" also sync object format and add tests (#30878) (#30880)

Backport #30878 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoGet repo list with OrderBy alpha should respect owner too (#30784) (#30875)
Giteabot [Mon, 6 May 2024 15:06:45 +0000 (23:06 +0800)]
Get repo list with OrderBy alpha should respect owner too (#30784) (#30875)

Backport #30784 by @6543

instead of:
- zowner/gcode
- awesome/nul
- zowner/nul
- zowner/zzz

we will get:
- awesome/nul
- zowner/gcode
- zowner/nul
- zowner/zzz

Co-authored-by: 6543 <6543@obermui.de>
5 months agoFix some UI problems (dropdown/container) (#30849) (#30871)
Giteabot [Mon, 6 May 2024 07:45:04 +0000 (15:45 +0800)]
Fix some UI problems (dropdown/container) (#30849) (#30871)

Backport #30849 by wxiaoguang

Follow #30345
Follow #30547

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoFix some UI problems (install/checkbox) (#30854) (#30870)
Giteabot [Mon, 6 May 2024 06:58:42 +0000 (14:58 +0800)]
Fix some UI problems (install/checkbox) (#30854) (#30870)

Backport #30854 by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoHave time.js use UTC-related getters/setters (#30857) (#30869)
Giteabot [Mon, 6 May 2024 02:01:22 +0000 (10:01 +0800)]
Have time.js use UTC-related getters/setters (#30857) (#30869)

Backport #30857 by kemzeb

Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com>
Co-authored-by: Sam Fisher <fisher@3echelon.local>
5 months agoDo not show monaco JS errors (#30862) (#30866)
Giteabot [Sun, 5 May 2024 16:53:09 +0000 (00:53 +0800)]
Do not show monaco JS errors (#30862) (#30866)

Backport #30862 by wxiaoguang

Fix #30861

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoFix issue/PR title edit (#30858) (#30865)
Giteabot [Sun, 5 May 2024 13:53:12 +0000 (21:53 +0800)]
Fix issue/PR title edit (#30858) (#30865)

Backport #30858 by wxiaoguang

1. "enter" doesn't work (I think it is the last enter support for #14843)
2. if a branch name contains something like `&`, then the branch selector doesn't update

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
5 months agoAdd result check in TestAPIEditUser (#29674) (#30860)
Giteabot [Sun, 5 May 2024 13:17:03 +0000 (21:17 +0800)]
Add result check in TestAPIEditUser (#29674) (#30860)

Backport #29674 by @yp05327

Fix #29514
there are too many usage of `NewRequestWithValues`, so there's no need
to check all of them.
Just one is enough I think.

Co-authored-by: yp05327 <576951401@qq.com>