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
wxiaoguang and GitHub
8f75f61b64
Do not show 500 error when default branch doesn't exist ( #34096 ) ( #34097 )
...
Backport #34096
2025-04-02 18:16:41 +08:00
wxiaoguang and GitHub
15e93a751c
Add a config option to block "expensive" pages for anonymous users ( #34024 ) ( #34071 )
...
Backport #34024 since there are too many AI crawlers. The new code is
covered by tests and it does nothing if users don't set it.
2025-03-30 06:16:32 +00: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
7f962a16c9
Pull request updates will also trigger code owners review requests ( #33744 ) ( #34045 )
...
Fix #33490
Backport #33744
It will only read the changed file on the pushed commits but not all the
files of this PR.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-28 17:24:31 +00: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
wxiaoguang and GitHub
92280637a4
Try to figure out attribute checker problem ( #33901 ) ( #33902 )
...
Backport #33901
2025-03-17 11:59:51 -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
ChristopherHX and GitHub
fc82204fca
Fix auto concurrency cancellation skips commit status updates ( #33764 ) ( #33849 )
...
Backport #33764
* add missing commit status
* conflicts with concurrency support
2025-03-11 16:51:58 +00:00
wxiaoguang and GitHub
869ee4fc38
Do not call "git diff" when listing PRs ( #33817 )
...
Fix #31492
2025-03-08 07:41:51 +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
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
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
wxiaoguang and GitHub
744f7c8200
Skip deletion error for action artifacts ( #33476 ) ( #33568 )
...
Fix #33567
2025-02-13 03:27:37 +08:00
da33b708af
Add a transaction to pickTask ( #33543 ) ( #33563 )
...
Backport #33543
In the old `pickTask`, when getting secrets or variables failed, the
task could get stuck in the `running` status (task status is `running`
but the runner did not fetch the task). To fix this issue, these steps
should be in one transaction.
---------
Co-authored-by: Zettat123 <zettat123@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-12 11:53:56 +08:00
wxiaoguang and GitHub
8fa3925874
Fix context usage ( #33554 ) ( #33557 )
...
Backport #33554
2025-02-11 19:46:27 +08:00
7c17d0a73e
Enhance routers for the Actions variable operations ( #33547 ) ( #33553 )
...
Backport #33547
Co-authored-by: Jason Song <i@wolfogre.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2025-02-11 03:52:09 +00: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
Lunny Xiao and GitHub
200cb6140d
Fix commit status events ( #33320 ) ( #33493 )
...
Fix #32873
Fix #33201
~Fix #33244~
~Fix #33302~
depends on ~#33396~
backport #33320
2025-02-05 11:35:47 +08:00
Lunny Xiao and GitHub
23971a77a0
Add tests for webhook and fix some webhook bugs ( #33396 ) ( #33442 )
...
This PR created a mock webhook server in the tests and added integration
tests for generic webhooks.
It also fixes bugs in package webhooks and pull request comment
webhooks.
This also corrected an error on the package webhook. The previous
implementation uses a `User` struct as an organization, now it has been
corrected but it will not be consistent with the previous
implementation, some fields which not belong to the organization have
been removed.
Backport #33396
Backport part of #33337
2025-02-02 14:44:50 +08: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
wxiaoguang and GitHub
a8eaf43f97
Fix user avatar ( #33439 )
2025-01-30 17:11:13 +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
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
eef635523a
Make tracked time representation display as hours ( #33315 ) ( #33334 )
...
Try to backport #33315 , the only trivial conflict is in the helper
functions map in the helper.go
Fix #33333
Co-authored-by: Sysoev, Vladimir <i@vsysoev.ru >
2025-01-21 06:49:58 +08:00
wxiaoguang and GitHub
8f45a11919
Improve sync fork behavior ( #33319 ) ( #33332 )
...
Backport #33319
Fix #33271
The only conflict is `reqctx` in
`services/repository/merge_upstream.go`, which could keep using
`context.Context` in 1.23
2025-01-20 07:50:38 +00:00
8d9ea68f19
Fix push message behavior ( #33215 ) ( #33317 )
...
Backport #33215
Manually resolved "reqctx" conflict
---------
Co-authored-by: Chai-Shi <changchaishi@gmail.com >
2025-01-19 10:48:28 +08: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
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
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
531f36ea4a
Fix git remote error check, fix dependencies, fix js error ( #33129 ) ( #33133 )
...
And update some dependencies to fix bugs.
Backport #33129 , #33136
Fix #32889
Fix #33141
Fix #33139
---------
Co-authored-by: yp05327 <576951401@qq.com >
2025-01-08 05:08:44 +00:00
Lunny Xiao and GitHub
9899989ece
Add missing transaction when set merge ( #33113 )
...
backport from #33079
`SetMerged` should be in a database transaction otherwise it's possible
to have dirty data.
2025-01-06 18:21:14 +00:00
wxiaoguang and GitHub
e637008fe3
Fix empty git repo handling logic and fix mobile view ( #33101 ) ( #33102 )
...
Backport #33101 and UI fix from main (including #33108 )
2025-01-05 23:18:02 +08:00
81768675d4
Inherit submodules from template repository content ( #16237 ) ( #33068 )
...
Backport #16237 (it more likely a bug fix)
Co-authored-by: Steffen Schröter <steffen@vexar.de >
2025-01-02 12:17:05 +08: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
Giteabot and GitHub
96fff862dc
Fix duplicate co-author in squashed merge commit messages ( #33020 ) ( #33054 )
2024-12-31 03:04:47 +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
f35ab5cd52
Fix Agit pull request permission check ( #32999 ) ( #33005 )
...
Backport #32999 by @a1012112796
user with read permission should also can create agit flow pull request.
looks this logic was broken in
https://github.com/go-gitea/gitea/pull/31033 this pull request try fix
it and add test code.
Signed-off-by: a1012112796 <1012112796@qq.com >
Co-authored-by: a1012112796 <1012112796@qq.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-28 11:34:28 +08:00
0137bc4e5c
Support for email addresses containing uppercase characters when activating user account ( #32998 ) ( #33001 )
...
Backport #32998 by Zettat123
Fix #32807
Co-authored-by: Zettat123 <zettat123@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-27 11:41:41 +00:00
ad1b76540e
demilestone should not include milestone ( #32923 ) ( #32979 )
...
Backport #32923 by @lunny
Fix #32887
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2024-12-25 08:03:18 +00:00
90bd08ceef
Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token ( #32946 ) ( #32964 )
...
Backport #32946 by wxiaoguang
Fix #23703
When Gitea starts, it reads GITEA_RUNNER_REGISTRATION_TOKEN
or GITEA_RUNNER_REGISTRATION_TOKEN_FILE to add registration token.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-24 00:37:11 +08:00
e1026feddc
Fix repo avatar conflict ( #32958 ) ( #32960 )
...
Backport #32958 by wxiaoguang
Continue even if the avatar deleting fails
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-23 03:17:38 +00:00
a4291fd553
Add more load functions to make sure the reference object loaded ( #32901 ) ( #32912 )
...
Backport #32901 by @lunny
Fix #32897
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2024-12-19 10:14:04 +01:00