aboutsummaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Do not show 500 error when default branch doesn't exist (#34096) (#34097)wxiaoguang27 hours1-1/+1
| | | Backport #34096
* Add a config option to block "expensive" pages for anonymous users (#34024) ↵wxiaoguang4 days2-2/+2
| | | | | | (#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.
* add additional ReplaceAll in pathsep to cater for different pathsep (#34061) ↵Giteabot4 days1-1/+1
| | | | | | | | | | | | | | | | (#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>
* Pull request updates will also trigger code owners review requests (#33744) ↵Lunny Xiao6 days6-34/+118
| | | | | | | | | | | (#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>
* Git client will follow 301 but 307 (#34005) (#34010)Giteabot9 days1-1/+3
| | | | | | | | Backport #34005 by lunny Fix #28460 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Try to figure out attribute checker problem (#33901) (#33902)wxiaoguang2025-03-171-0/+2
| | | Backport #33901
* Ignore trivial errors when updating push data (#33864) (#33887)Giteabot2025-03-142-18/+20
| | | | | | | Backport #33864 by wxiaoguang Fix #23213 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix auto concurrency cancellation skips commit status updates (#33764) (#33849)ChristopherHX2025-03-115-9/+29
| | | | | Backport #33764 * add missing commit status * conflicts with concurrency support
* Do not call "git diff" when listing PRs (#33817)wxiaoguang2025-03-081-17/+3
| | | Fix #31492
* Adjust appearence of commit status webhook (#33778) (#33789)Giteabot2025-03-042-5/+12
| | | | | | | | | | | | | | | | | | | | 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: ![grafik](https://github.com/user-attachments/assets/9c460846-c350-444c-89b5-8a0d5e26cb86) After: ![grafik](https://github.com/user-attachments/assets/05519cd8-6d8f-432b-bd9d-082de558a55a) Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
* Deleting repository should unlink all related packages (#33653) (#33673)Giteabot2025-02-212-6/+7
| | | | | | | | Backport #33653 by @lunny Fix #33634 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make actions URL in commit status webhooks absolute (#33620) (#33632)Giteabot2025-02-181-1/+7
| | | | | | | | Backport #33620 by lunny Fix #33603 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix project issues list and counting (#33594) (#33619)Giteabot2025-02-183-0/+349
| | | | | | | | | 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>
* Fix mirror bug (#33597) (#33607)Giteabot2025-02-152-3/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #33597 by @ericLemanissier follows-up be4e961240883778c44d9651eaaf9ab8723bbbb0 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>
* Use default Git timeout when checking repo health (#33593) (#33598)Giteabot2025-02-141-1/+1
| | | | | | | Backport #33593 by @Zettat123 Use `git.timeout.DEFAULT` configuration instead of 60 seconds. Co-authored-by: Zettat123 <zettat123@gmail.com>
* Performance optimization for pull request files loading comments attachments ↵Giteabot2025-02-141-1/+1
| | | | | | | (#33585) (#33592) Backport #33585 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Only show the latest version in the Arch index (#33262) (#33580)Giteabot2025-02-133-12/+166
| | | | | | | | | | 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>
* Fix various problems (artifact order, api empty slice, assignee check, fuzzy ↵Giteabot2025-02-135-13/+23
| | | | | | | | | | | | | | 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>
* Skip deletion error for action artifacts (#33476) (#33568)wxiaoguang2025-02-131-6/+5
| | | Fix #33567
* Add a transaction to `pickTask` (#33543) (#33563)Lunny Xiao2025-02-123-3/+261
| | | | | | | | | | | | | 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>
* Fix context usage (#33554) (#33557)wxiaoguang2025-02-115-9/+10
| | | Backport #33554
* Enhance routers for the Actions variable operations (#33547) (#33553)Lunny Xiao2025-02-111-9/+6
| | | | | | | Backport #33547 Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
* Rework suggestion backend (#33538) (#33546)Giteabot2025-02-112-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Fix unnecessary comment when moving issue on the same project column ↵Giteabot2025-02-051-12/+19
| | | | | | | | | (#33496) (#33499) Backport #33496 by @lunny Fix #33482 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix commit status events (#33320) (#33493)Lunny Xiao2025-02-0512-0/+77
| | | | | | | | | Fix #32873 Fix #33201 ~Fix #33244~ ~Fix #33302~ depends on ~#33396~ backport #33320
* Add tests for webhook and fix some webhook bugs (#33396) (#33442)Lunny Xiao2025-02-0212-15/+54
| | | | | | | | | | | | | | | 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
* Fix SSH LFS memory usage (#33455) (#33460)Giteabot2025-01-311-1/+3
| | | | | | | Backport #33455 by wxiaoguang Fix #33448 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix user avatar (#33439)wxiaoguang2025-01-301-1/+1
|
* Fix system admin cannot fork or get private fork with API (#33401) (#33417)Giteabot2025-01-271-3/+5
| | | | | | | Backport #33401 by @lunny Fix #33368 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Use ProtonMail/go-crypto to replace keybase/go-crypto (#33402) (#33410)Giteabot2025-01-272-7/+7
| | | | | | | | | Backport #33402 by wxiaoguang Fix #33400 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make tracked time representation display as hours (#33315) (#33334)wxiaoguang2025-01-212-2/+3
| | | | | | | | 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>
* Improve sync fork behavior (#33319) (#33332)wxiaoguang2025-01-202-6/+56
| | | | | | | | Backport #33319 Fix #33271 The only conflict is `reqctx` in `services/repository/merge_upstream.go`, which could keep using `context.Context` in 1.23
* Fix push message behavior (#33215) (#33317)wxiaoguang2025-01-192-65/+63
| | | | | | | | | Backport #33215 Manually resolved "reqctx" conflict --------- Co-authored-by: Chai-Shi <changchaishi@gmail.com>
* Fix mirror bug (#33224) (#33225)Giteabot2025-01-121-1/+14
| | | | | | | | Backport #33224 by lunny Fix #33200 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix sync fork for consistency (#33147) (#33192)Giteabot2025-01-101-9/+40
| | | | | | | | | | | | 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>
* Fix raw file API ref handling (#33172) (#33189)Giteabot2025-01-102-23/+18
| | | | | | | Backport #33172 by wxiaoguang Fix #33164 and add more tests Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix `git remote` error check, fix dependencies, fix js error (#33129) (#33133)wxiaoguang2025-01-082-8/+7
| | | | | | | | | | | | | And update some dependencies to fix bugs. Backport #33129, #33136 Fix #32889 Fix #33141 Fix #33139 --------- Co-authored-by: yp05327 <576951401@qq.com>
* Add missing transaction when set merge (#33113)Lunny Xiao2025-01-061-3/+8
| | | | | | backport from #33079 `SetMerged` should be in a database transaction otherwise it's possible to have dirty data.
* Fix empty git repo handling logic and fix mobile view (#33101) (#33102)wxiaoguang2025-01-051-3/+0
| | | Backport #33101 and UI fix from main (including #33108)
* Inherit submodules from template repository content (#16237) (#33068)wxiaoguang2025-01-021-61/+66
| | | | | Backport #16237 (it more likely a bug fix) Co-authored-by: Steffen Schröter <steffen@vexar.de>
* feat(action): issue change title notifications (#33050) (#33065)Giteabot2024-12-311-0/+8
| | | | | | | | | | | | | | | | | 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>
* Fix duplicate co-author in squashed merge commit messages (#33020) (#33054)Giteabot2024-12-311-1/+5
|
* Remove aws go sdk package dependency (#33029) (#33047)Giteabot2024-12-301-5/+5
| | | | | Backport #33029 by lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix Agit pull request permission check (#32999) (#33005)Giteabot2024-12-281-1/+2
| | | | | | | | | | | | 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>
* Support for email addresses containing uppercase characters when activating ↵Giteabot2024-12-271-3/+6
| | | | | | | | | | user account (#32998) (#33001) Backport #32998 by Zettat123 Fix #32807 Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* demilestone should not include milestone (#32923) (#32979)Giteabot2024-12-252-0/+12
| | | | | | | Backport #32923 by @lunny Fix #32887 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) (#32964)Giteabot2024-12-242-3/+128
| | | | | | | | | | 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>
* Fix repo avatar conflict (#32958) (#32960)Giteabot2024-12-233-3/+12
| | | | | | | Backport #32958 by wxiaoguang Continue even if the avatar deleting fails Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add more load functions to make sure the reference object loaded (#32901) ↵Giteabot2024-12-192-0/+9
| | | | | | | | | (#32912) Backport #32901 by @lunny Fix #32897 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix Arch package metadata introduced incorrect field (#32881) (#32882)Giteabot2024-12-181-1/+2
| | | | | | | | Backport #32881 by ExplodingDragon Incorrect content was introduced while generating the index, which has now been removed, and the missing fields have been added. Co-authored-by: Exploding Dragon <explodingfkl@gmail.com>