cccd54999a
Fix releases sidebar navigation link ( #34436 ) ( #34439 )
...
Backport #34436 by @badhezi
Resolves https://github.com/go-gitea/gitea/issues/34435
---------
Co-authored-by: badhezi <zlilaharon@gmail.com >
2025-05-12 22:01:45 +00:00
ec146b4200
Fix bug webhook milestone is not right. ( #34419 ) ( #34429 )
...
Backport #34419 by @lunny
Fix #34400
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
2025-05-12 15:26:31 +02:00
a4cc867401
Fix bug when API get pull changed files for deleted head repository ( #34333 ) ( #34368 )
...
Backport #34333 by @lunny
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-05-05 10:04:52 -07:00
8e5aa8fb1e
Fix bug when visiting comparation page ( #34334 ) ( #34364 )
...
Backport #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 >
2025-05-04 19:56:47 +00:00
e3e705200a
Fix wrong review requests when updating the pull request ( #34286 ) ( #34304 )
...
Backport #34286 by @lunny
Fix #34224
The previous implementation in #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 #33744 and will always get the PR's changed
files and get code owners.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-04-28 19:48:45 -07:00
a9d5ab8f88
fix github migration error when using multiple tokens ( #34144 ) ( #34302 )
...
Backport #34144 by @TheFox0x7
Git authorization was not taking into account multiple token feature,
leading to auth failures
Closes: https://github.com/go-gitea/gitea/issues/34141
---------
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-04-28 17:12:36 +00:00
4f6d09fb68
Update token creation API swagger documentation ( #34288 ) ( #34296 )
...
Backport #34288 by @lunny
Fix #34231
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-04-27 19:34:46 -07:00
030ed9462d
Don't assume the default wiki branch is master in the wiki API ( #34244 ) ( #34245 )
...
Backport #34244 by kemzeb
Resolves #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 >
2025-04-19 03:37:22 +00:00
60f175f7ff
Swift files can be passed either as file or as form value ( #34068 ) ( #34236 )
...
Backport #34068 by wgr1984
Fix #33990
Co-authored-by: Wolfgang Reithmeier <w.reithmeier@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-18 12:34:28 +00:00
260816d64a
Fix project board links to related Pull Requests ( #34213 ) ( #34222 )
...
Backport #34213 by @badhezi
Resolves https://github.com/go-gitea/gitea/issues/34181
Co-authored-by: badhezi <zlilaharon@gmail.com >
2025-04-17 20:10:58 -07:00
c01459a504
Fix two missed null value checks on the wiki page. ( #34205 ) ( #34215 )
...
Backport #34205 by @kerwin612
before:

after:

Co-authored-by: Kerwin Bryant <kerwin612@qq.com >
2025-04-16 09:23:55 -07:00
6e4e3ca012
Fix empty repo clone panel border ( #34219 ) ( #34220 )
...
Backport #34219 by kerwin612
Co-authored-by: Kerwin Bryant <kerwin612@qq.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-16 15:46:33 +08:00
ed0e8865f3
feat: add riscv64 support ( #34199 ) ( #34204 )
...
Backport #34199 by @mengzhuo
Co-authored-by: Meng Zhuo <mengzhuo1203@gmail.com >
2025-04-14 16:57:43 +00:00
Giteabot and GitHub
dc5adce70d
fix( #33711 ): cross-publish docker images to ghcr.io ( #34148 ) ( #34176 )
2025-04-10 21:56:06 -04:00
328ce0485f
bugfix check for alternate ssh host certificate location ( #34146 ) ( #34166 )
...
Backport #34146 by ManInDark
fixes #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 >
2025-04-10 12:00:43 +08:00
39b6abf955
remove hardcoded 'code' string in clone_panel.tmpl ( #34153 ) ( #34158 )
...
Backport #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 >
2025-04-09 12:14:28 +02:00
66ccae8b90
Fix discord webhook 400 status code when description limit is exceeded ( #34084 ) ( #34124 )
...
Backport #34084 by @Mopcho
Fixes [#34027 ](https://github.com/go-gitea/gitea/issues/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 >
2025-04-05 02:08:04 +00:00
67dc1ff926
Fix invalid version in RPM package path ( #34112 ) ( #34115 )
...
Backport #34112 by @KN4CK3R
Fixes #34017
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
2025-04-03 21:18:46 +00:00
4ee4c06b07
also check default ssh-cert location for host ( #34099 ) ( #34100 ) ( #34116 )
...
Backport #34100 by @ManInDark
Fixes #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 >
2025-04-04 04:38:24 +08:00
25e409e025
Return default avatar url when user id is zero rather than updating database ( #34094 ) ( #34095 )
...
Backport #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 >
2025-04-02 09:37:17 +08:00
5a9b3bfa50
add additional ReplaceAll in pathsep to cater for different pathsep ( #34061 ) ( #34070 )
...
Backport #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 #34039
Co-authored-by: JonRB <4564448+eeyrjmr@users.noreply.github.com >
2025-03-30 05:51:08 +00:00
eee4a752a5
Simplify emoji rendering ( #34048 ) ( #34049 )
...
Backport #34048 by silverwind
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-28 10:30:29 +00:00
e46f9ff534
Fix the issue with error message logging for the check-attr command on Windows OS. ( #34035 ) ( #34036 )
...
Backport #34035 by charles7668
Close #34022 , #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 >
2025-03-27 09:50:57 +00:00
690e810bcc
Try to fix check-attr bug ( #34029 ) ( #34033 )
...
Backport #34029 by wxiaoguang
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-27 05:36:07 +00:00
35983ac0a8
Polyfill WeakRef ( #34025 ) ( #34028 )
...
Backport #34025 by wxiaoguang
Fix #33407
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-27 00:13:22 +08:00
4b3400bd9c
Git client will follow 301 but 307 ( #34005 ) ( #34010 )
...
Backport #34005 by lunny
Fix #28460
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-25 15:56:44 +08:00
f994f3cac6
Fix incorrect code search indexer options ( #33992 ) ( #33999 )
...
Backport #33992 by @wxiaoguang
Fix #33798
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-24 10:02:05 -07:00
b5f8c4a510
Drop timeout for requests made to the internal hook api ( #33947 ) ( #33970 )
...
Backport #33947 by Mik4sa
Co-authored-by: Kai Leonhardt <8343141+Mik4sa@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-22 08:46:54 +08:00
5fadcf997e
Fix maven panic when no package exists ( #33888 ) ( #33889 )
...
Backport #33888 by @wxiaoguang
Fix #33886
Restore the old logic from #16510 , which was incorrectly removed by
#33678
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-14 11:11:41 -07:00
be94f7bc07
Ignore trivial errors when updating push data ( #33864 ) ( #33887 )
...
Backport #33864 by wxiaoguang
Fix #23213
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-14 15:37:00 +00:00
9054a6670c
Fix markdown render ( #33870 ) ( #33875 )
...
Backport #33870 by wxiaoguang
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-14 00:28:10 +00:00
a2c6ecc093
Fix LFS URL ( #33840 ) ( #33843 )
...
Backport #33840 by wxiaoguang
Fix #33839
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-10 11:26:31 +01:00
523a84e5d0
Removing unwanted ui container ( #33833 ) ( #33835 )
...
Backport #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 >
2025-03-09 17:02:45 +00:00
69d35ee911
Adjust appearence of commit status webhook ( #33778 ) ( #33789 )
...
Backport #33778 by @denyskon
Some visual improvement for the commit status webhook message introduced
by #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 >
2025-03-04 12:47:05 -08:00
8939c3845a
Disable go license generation as part of make tidy ( #33747 ) ( #33751 )
...
Backport #33747 by @silverwind
It seems something broken `google/go-licenses` (maybe related to go
1.24), and my findings are in
https://github.com/google/go-licenses/issues/128#issuecomment-2689753365 .
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 https://github.com/google/go-licenses/issues/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 https://github.com/google/go-licenses/issues/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 >
2025-02-28 17:13:19 -08:00
7ded86f5af
Remove superflous tw-content-center ( #33741 ) ( #33743 )
...
Backport #33741 by @silverwind
Co-authored-by: silverwind <me@silverwind.io >
2025-02-28 12:38:27 -05:00
27a60fd91b
Fix inconsistent closed issue list icon ( #33722 ) ( #33728 )
...
Backport #33722 by @lunny
Fixe #33718
Before

After

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-02-25 17:29:07 -08:00
81126daf53
Optimize user dashboard loading ( #33686 ) ( #33708 )
...
Backport #33686 by @lunny
Fix #33582
Fix #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 >
2025-02-24 20:34:03 -08:00
Giteabot and GitHub
1c7339e385
Fix OCI image.version annotation for releases to use full semver ( #33698 ) ( #33701 )
2025-02-24 09:13:45 -05:00
039924aa2a
Try to fix ACME path when renew ( #33668 ) ( #33693 )
...
Backport #33668 by wxiaoguang
Try to fix #32191
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-23 12:58:10 +00:00
b5007c6154
Fix for Maven Package Naming Convention Handling ( #33678 ) ( #33679 )
...
Backport #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 >
2025-02-21 19:37:42 +00:00
ae595aa913
Improve Open-with URL encoding ( #33666 ) ( #33680 )
...
Backport #33666 by wxiaoguang
Fix #33665
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-22 01:57:17 +08:00
aeeccc9642
Deleting repository should unlink all related packages ( #33653 ) ( #33673 )
...
Backport #33653 by @lunny
Fix #33634
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-21 08:38:15 +00:00
37e99d9b34
Fix omitempty bug ( #33663 ) ( #33670 )
...
Backport #33663 by @lunny
Fix #33660
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-02-21 00:08:05 -08:00
9da6d4ea85
Fix mCaptcha bug ( #33659 ) ( #33661 )
...
Backport #33659 by wxiaoguang
Fix #33658
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-21 00:21:31 +08:00
8844e62cb4
git graph: don't show detached commits ( #33645 ) ( #33650 )
...
Backport #33645 by ericLemanissier
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com >
2025-02-20 09:11:43 +08:00
b2707bcd18
Make actions URL in commit status webhooks absolute ( #33620 ) ( #33632 )
...
Backport #33620 by lunny
Fix #33603
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-18 02:46:08 +00:00
0512b02b01
Fix project issues list and counting ( #33594 ) ( #33619 )
...
Backport #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 >
2025-02-18 00:59:32 +08:00
99545ae2fd
Fix mirror bug ( #33597 ) ( #33607 )
...
Backport #33597 by @ericLemanissier
follows-up be4e961240
This is the same modification as
https://github.com/go-gitea/gitea/commit/be4e961240883778c44d9651eaaf9ab8723bbbb0
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 https://github.com/go-gitea/gitea/issues/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 >
2025-02-15 21:17:34 -08:00
7697df9f93
Use default Git timeout when checking repo health ( #33593 ) ( #33598 )
...
Backport #33593 by @Zettat123
Use `git.timeout.DEFAULT` configuration instead of 60 seconds.
Co-authored-by: Zettat123 <zettat123@gmail.com >
2025-02-14 15:38:55 +00:00
5e9cc919cf
Performance optimization for pull request files loading comments attachments ( #33585 ) ( #33592 )
...
Backport #33585 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-02-14 00:06:46 -08:00
cc6ec56738
Only show the latest version in the Arch index ( #33262 ) ( #33580 )
...
Backport #33262 by ExplodingDragon
Only show the latest version of the package in the arch repo.
closes #33534
Co-authored-by: Exploding Dragon <explodingfkl@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-13 20:02:28 +08:00
76bd60fc1d
Fix various problems (artifact order, api empty slice, assignee check, fuzzy prompt, mirror proxy, adopt git) ( #33569 ) ( #33577 )
...
Backport #33569 by @wxiaoguang
* Make artifact list output has stable order
* Fix #33506
* Fix #33521
* Fix #33288
* Fix #33196
* Fix #33561
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-13 07:33:11 +08:00
a014d071e4
Rework suggestion backend ( #33538 ) ( #33546 )
...
Backport #33538 by @lunny
Fix #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 >
2025-02-11 01:22:39 +08:00
2df7d0835a
Fix unnecessary comment when moving issue on the same project column ( #33496 ) ( #33499 )
...
Backport #33496 by @lunny
Fix #33482
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-02-05 04:41:48 +00:00
Giteabot and GitHub
2746c6f1aa
Correct bot label vertical-align ( #33477 ) ( #33480 )
2025-02-02 15:08:59 -05:00
ebac324ff2
Fix GetCommitBranchStart bug ( #33298 ) ( #33421 )
...
Backport #33298 by Zettat123
Fix #33265
Fix #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 >
2025-02-01 09:43:10 +01:00
7df1204795
Fix SSH LFS memory usage ( #33455 ) ( #33460 )
...
Backport #33455 by wxiaoguang
Fix #33448
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-31 11:30:16 +00:00
159544a950
Revert empty lfs ref name ( #33454 ) ( #33457 )
...
Backport #33454 by wxiaoguang
Fix #33453
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-31 10:27:23 +00:00
9780da583d
Fix issue sidebar dropdown keyboard support ( #33447 ) ( #33450 )
...
Backport #33447 by wxiaoguang
Just a quick fix, fix #33444
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-31 10:11:51 +08:00
b6fd8741ee
Fix system admin cannot fork or get private fork with API ( #33401 ) ( #33417 )
...
Backport #33401 by @lunny
Fix #33368
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-01-27 18:43:16 +00:00
2674d27fb8
Add pubdate for repository rss and add some tests ( #33411 ) ( #33416 )
...
Backport #33411 by @lunny
Fix #33291
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-01-27 17:42:47 +00:00
6f3837284d
Fix flex width ( #33414 ) ( #33418 )
...
Backport #33414 by wxiaoguang
Fix #33409
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-27 17:16:21 +00:00
4578288ea3
Use ProtonMail/go-crypto to replace keybase/go-crypto ( #33402 ) ( #33410 )
...
Backport #33402 by wxiaoguang
Fix #33400
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-27 02:50:00 +00:00
826fffb59e
Add missed auto merge feed message on dashboard ( #33309 ) ( #33405 )
...
Backport #33309 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-01-26 18:57:45 +00:00
2196ba5e42
Clone button enhancements ( #33362 ) ( #33404 )
...
Backport #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 >
2025-01-26 19:20:57 +01:00
12347f07ae
Repo homepage styling tweaks ( #33289 ) ( #33381 )
...
Backport #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 >
2025-01-24 13:41:01 -05:00
e08eed9040
Fix code button alignment ( #33345 ) ( #33351 )
...
Backport #33345 by silverwind
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-22 15:18:34 +08:00
72837530bf
Fix issue count ( #33338 ) ( #33341 )
...
Backport #33338 by wxiaoguang
Fix #33336
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-21 11:18:22 +00:00
e72d001708
Fix Account linking page ( #33325 ) ( #33327 )
...
Backport #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 >
2025-01-19 13:02:33 +00:00
3b4af01633
Fix sidebar milestone link ( #33269 ) ( #33272 )
...
Backport #33269 by wxiaoguang
Fix #33266
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-15 00:19:37 +00:00
b4e2d5e8ee
Add a confirm dialog for "sync fork" ( #33270 ) ( #33273 )
...
Backport #33270 by @wxiaoguang
Try to quickly fix #33264
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-15 00:51:17 +02:00
2984a7c121
Fix missing license when sync mirror ( #33255 ) ( #33258 )
...
Backport #33255 by yp05327
Fix #33222
Co-authored-by: yp05327 <576951401@qq.com >
2025-01-14 06:26:27 +00:00
10b6047498
Fix upload file form ( #33230 ) ( #33233 )
...
Backport #33230 by @wxiaoguang
Fix #33228
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-13 01:49:56 +02:00
2c47b06869
Fix mirror bug ( #33224 ) ( #33225 )
...
Backport #33224 by lunny
Fix #33200
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-12 11:11:02 +00:00
31f2a325dc
fix(cache): cache test triggered by non memory cache ( #33220 ) ( #33221 )
...
Backport #33220 by TheFox0x7
Change SlowCacheThreshold to 30 milliseconds so it doesn't trigger on
non memory cache
Closes: https://github.com/go-gitea/gitea/issues/33190
Closes: https://github.com/go-gitea/gitea/issues/32657
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com >
2025-01-12 09:19:37 +08:00
d70348836b
Fix sync fork for consistency ( #33147 ) ( #33192 )
...
Backport #33147 by changchaishi
Fixes #33145
An integration test could be added.
---------
Co-authored-by: Chai-Shi <changchaishi@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-10 15:11:45 +08:00
940a930d13
Use updated path to s6-svscan after alpine upgrade ( #33185 ) ( #33188 )
...
Backport #33185 by @techknowlogick
Fix #33163
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-10 02:48:52 +00:00
45d21a0d5c
Fix raw file API ref handling ( #33172 ) ( #33189 )
...
Backport #33172 by wxiaoguang
Fix #33164 and add more tests
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-10 02:41:28 +00:00
15ad001aef
Fix branch dropdown not display ref name ( #33159 ) ( #33183 )
...
Backport #33159 by @yp05327
Before:

After:

Co-authored-by: yp05327 <576951401@qq.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-10 01:41:52 +00:00
ed1828ca92
Fix ACME panic ( #33178 ) ( #33186 )
...
Backport #33178 by @wxiaoguang
Fix #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 >
2025-01-10 09:06:40 +08:00
3cfff5af0d
Move repo size to sidebar ( #33155 ) ( #33182 )
...
Backport #33155 by @yp05327

Co-authored-by: yp05327 <576951401@qq.com >
2025-01-09 20:29:37 +00:00
6f6c66a07d
Fix assignee list overlapping in Issue sidebar ( #33176 ) ( #33181 )
...
Backport #33176 by wxiaoguang
Fix #33170
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-09 18:36:32 +00:00
d65af69c2b
Fix pam auth test regression ( #33169 ) ( #33174 )
...
Backport #33169 by TheFox0x7
fixes: https://github.com/go-gitea/gitea/issues/33168
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com >
2025-01-09 13:33:50 +00:00
12c24c2189
Fix fuzz test ( #33156 ) ( #33158 )
...
Backport #33156 by @lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-01-09 07:40:35 +00:00
b4f0eed969
Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index ( #33106 ) ( #33128 )
...
Backport #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 >
2025-01-08 10:43:46 +08:00
63b3a33bf2
fix empty repo updated time ( #33120 ) ( #33124 )
...
Backport #33120 by changchaishi
fixes #33119
Co-authored-by: Chai-Shi <changchaishi@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-06 23:55:04 +00:00
d371aa3031
Try to fix ACME directory problem ( #33072 ) ( #33077 )
...
Backport #33072 by wxiaoguang
Haven't really confirmed, but I think it might fix #32191
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-02 05:02:46 +00:00
39cc72562b
feat(action): issue change title notifications ( #33050 ) ( #33065 )
...
Backport #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 >
2024-12-31 12:33:08 +00:00
bc83fb26ef
Use project's redirect url instead of composing url ( #33058 ) ( #33064 )
...
Backport #33058 by lunny
Fix #32992
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-31 20:06:35 +08:00
3df11c07a8
Make issue suggestion work for new PR page ( #33035 ) ( #33056 )
...
Backport #33035 by wxiaoguang
Fix #33026
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-31 03:56:34 +00:00
Giteabot and GitHub
96fff862dc
Fix duplicate co-author in squashed merge commit messages ( #33020 ) ( #33054 )
2024-12-31 03:04:47 +00:00
968c04c7da
Fix issue comment number ( #30556 ) ( #33055 )
...
Backport #30556 by @lunny
Fix #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 >
2024-12-31 07:54:40 +08:00
27de60381d
Fix settings not being loaded at CLI ( #26402 ) ( #33048 )
...
Backport #26402 by cassiozareck
Closes #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 >
2024-12-30 07:39:59 +00:00
d2d763318c
Remove aws go sdk package dependency ( #33029 ) ( #33047 )
...
Backport #33029 by lunny
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2024-12-30 06:55:06 +00:00
Giteabot and GitHub
610b2fb88d
Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache ( #32987 ) ( #33046 )
2024-12-30 05:17:07 +00:00
0858a36016
use -s -w ldflags for release artifacts ( #33041 ) ( #33042 )
...
Backport #33041 by @techknowlogick
fix #33030
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
2024-12-30 04:17:17 +00:00
fef364e7d6
Fix bug automerge cannot be chosed when there is only 1 merge style ( #33040 ) ( #33043 )
...
Backport #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 #32448
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2024-12-30 11:42:08 +08:00
74159a8855
Fix templating in pull request comparison ( #33025 ) ( #33038 )
...
Backport #33025 by TheFox0x7
Adds test for expected behavior
Closes: https://github.com/go-gitea/gitea/issues/33013
---
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com >
2024-12-29 18:24:22 +00:00
7f0050cf39
Fix review code comment avatar alignment ( #33031 ) ( #33032 )
...
Backport #33031 by henrygoodman
Fixes #33017
Co-authored-by: Henry Goodman <79623665+henrygoodman@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-30 00:58:40 +08:00