Commit Graph

4790 Commits

Author SHA1 Message Date
wxiaoguang d03e7fd65e
Support disable passkey auth () ()
* Backport 
* Backport 

---------

Co-authored-by: yp05327 <576951401@qq.com>
2025-03-07 21:31:25 +02:00
Giteabot b5007c6154
Fix for Maven Package Naming Convention Handling () ()
Backport  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
Giteabot 0512b02b01
Fix project issues list and counting () ()
Backport  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
wxiaoguang d17f8ffcc1
Fix PR's target branch dropdown () ()
Backport 
2025-02-14 08:38:33 +00:00
Giteabot 5e9cc919cf
Performance optimization for pull request files loading comments attachments () ()
Backport  by @lunny

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-02-14 00:06:46 -08:00
Giteabot 76bd60fc1d
Fix various problems (artifact order, api empty slice, assignee check, fuzzy prompt, mirror proxy, adopt git) () ()
Backport  by @wxiaoguang

* Make artifact list output has stable order
* Fix 
* Fix 
* Fix 
* Fix 
* Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-13 07:33:11 +08:00
Lunny Xiao da33b708af
Add a transaction to `pickTask` () ()
Backport  

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 8fa3925874
Fix context usage () ()
Backport 
2025-02-11 19:46:27 +08:00
Lunny Xiao 7794ff0874
Enhance routers for the Actions runner operations () ()
Backport  

- Find the runner before deleting
- Move the main logic from `routers/web/repo/setting/runners.go` to
`routers/web/shared/actions/runners.go`.

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-11 15:25:56 +08:00
Lunny Xiao 7c17d0a73e
Enhance routers for the Actions variable operations () ()
Backport 

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
Giteabot a014d071e4
Rework suggestion backend () ()
Backport  by @lunny

Fix  

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
Lunny Xiao 200cb6140d
Fix commit status events () ()
Fix 
Fix 
~Fix #33244~
~Fix #33302~

depends on ~#33396~
backport 
2025-02-05 11:35:47 +08:00
Lunny Xiao 23971a77a0
Add tests for webhook and fix some webhook bugs () ()
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 
Backport part of 
2025-02-02 14:44:50 +08:00
wxiaoguang a8eaf43f97
Fix user avatar () 2025-01-30 17:11:13 +08:00
Giteabot b6fd8741ee
Fix system admin cannot fork or get private fork with API () ()
Backport  by @lunny

Fix 

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-01-27 18:43:16 +00:00
Giteabot 2674d27fb8
Add pubdate for repository rss and add some tests () ()
Backport  by @lunny

Fix 

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-01-27 17:42:47 +00:00
Giteabot 4578288ea3
Use ProtonMail/go-crypto to replace keybase/go-crypto () ()
Backport  by wxiaoguang

Fix 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-27 02:50:00 +00:00
silverwind 987d014468
Update go tool dependencies () ()
Clean cherry-pick of https://github.com/go-gitea/gitea/pull/32916.
Update all go tool dependencies to latest version.
2025-01-22 11:37:47 -05:00
Giteabot 72837530bf
Fix issue count () ()
Backport  by wxiaoguang

Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-21 11:18:22 +00:00
wxiaoguang eef635523a
Make tracked time representation display as hours () ()
Try to backport , the only trivial conflict is in the helper
functions map in the helper.go

Fix 

Co-authored-by: Sysoev, Vladimir <i@vsysoev.ru>
2025-01-21 06:49:58 +08:00
Giteabot e72d001708
Fix Account linking page () ()
Backport  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
wxiaoguang 8d9ea68f19
Fix push message behavior () ()
Backport 

Manually resolved "reqctx" conflict

---------

Co-authored-by: Chai-Shi <changchaishi@gmail.com>
2025-01-19 10:48:28 +08:00
wxiaoguang bf664c2e85
Trivial fixes () ()
Backport 

The only conflict is caused by `templates/shared/issueicon.tmpl`
2025-01-18 03:09:17 +08:00
wxiaoguang 80cc87b3d8
Fix tag route and empty repo () 2025-01-14 14:01:30 +08:00
Giteabot d70348836b
Fix sync fork for consistency () ()
Backport  by changchaishi

Fixes 

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
Giteabot b4f0eed969
Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index () ()
Backport  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
Giteabot 63b3a33bf2
fix empty repo updated time () ()
Backport  by changchaishi

fixes  


Co-authored-by: Chai-Shi <changchaishi@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-06 23:55:04 +00:00
wxiaoguang 0fad40dd8c
Fix package error handling and npm meta and empty repo guide () 2025-01-06 14:17:28 +08:00
wxiaoguang e637008fe3
Fix empty git repo handling logic and fix mobile view () ()
Backport  and UI fix from main (including )
2025-01-05 23:18:02 +08:00
wxiaoguang e10d222434
Fix bleve fuzziness search () () 2025-01-02 21:45:14 +00:00
wxiaoguang 7a35f90b29
Fix broken forms () 2025-01-03 03:57:34 +08:00
Giteabot bc83fb26ef
Use project's redirect url instead of composing url () ()
Backport  by lunny

Fix 

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-31 20:06:35 +08:00
wxiaoguang 68736ec292
Refactor maven package registry () ()
Backport 
2024-12-31 15:22:09 +08:00
Giteabot 610b2fb88d
Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache () () 2024-12-30 05:17:07 +00:00
Giteabot 0137bc4e5c
Support for email addresses containing uppercase characters when activating user account () ()
Backport  by Zettat123

Fix 

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-27 11:41:41 +00:00
Giteabot eed0968c37
Support org labels when adding labels by label names () ()
Backport  by @Zettat123

Fix 

Co-authored-by: Zettat123 <zettat123@gmail.com>
2024-12-27 08:35:36 +08:00
Giteabot af5e5e8f00
Fix maven pom inheritance () ()
Backport  by wxiaoguang

Fix  

At the moment, here only `GroupID` (no `Version`) is parsed & used

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-25 05:47:51 +00:00
Giteabot 90bd08ceef
Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token () ()
Backport  by wxiaoguang

Fix 

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
wxiaoguang e98dd6ee5b
Backport 1.23 ()
Co-authored-by: delvh <dev.lh@web.de>
2024-12-17 11:58:27 +08:00
Lunny Xiao 42090844ed
Fix bug on action list deleted branch ()
Fix
https://github.com/go-gitea/gitea/issues/32761#issuecomment-2540946064

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-16 05:38:39 +08:00
TheFox0x7 33e8e82c4b
Enable tenv and testifylint rules ()
Enables tenv and testifylint linters
closes: https://github.com/go-gitea/gitea/issues/32842
2024-12-15 10:41:29 +00:00
silverwind 1cfb718976
Update golangci-lint to v1.62.2, fix issues ()
Update it and fix new issues related to `redefines-builtin-id`
2024-12-15 02:31:07 +00:00
Zettat123 7269130d28
Fix missing outputs for jobs with matrix ()
Fix 

If a job uses a matrix, multiple `ActionRunJobs` may have the same
`JobID`. We need to merge the outputs of these jobs to make them
available to the jobs that need them.
2024-12-14 10:22:30 +08:00
wxiaoguang a66c16dc1b
Allow to fork repository into the same owner ()
This feature is experimental, not fully tested, and may be changed in
the future.

It is only designed for users who really need it: set
`[repository].ALLOW_FORK_INTO_SAME_OWNER=true` in your app.ini

Doc: https://gitea.com/gitea/docs/pulls/122


![image](https://github.com/user-attachments/assets/38d08c23-9cfc-49d8-9321-ff81edf65395)
2024-12-14 09:39:05 +08:00
Lunny Xiao 6370d2fb93
Detect whether action view branch was deleted ()
Fix  

![图片](https://github.com/user-attachments/assets/a5a7eef8-0fea-4242-b199-1b0b73d9bbdb)
2024-12-12 19:28:23 +00:00
wxiaoguang 22bf2ca6ba
Make API "compare" accept commit IDs () 2024-12-12 08:10:09 +00:00
Kemal Zebari 01b1896bf5
Implement update branch API ()
Resolves .

Builds upon .

---------

Co-authored-by: sillyguodong <33891828+sillyguodong@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-12 05:02:35 +00:00
yp05327 d43620e7bc
Add `is_archived` option for issue indexer ()
Try to fix 

Reason:
`is_archived` is already defined in the query options, but it is not
implemented in the indexer.
2024-12-12 07:33:31 +08:00
Sebastian T. T. 874b8484aa
Add standard-compliant route to serve outdated R packages ()
The R package repository currently does not have support for older
versions of packages which should be stored in a separate /Archive
router. This PR remedies that by adding a new path router.

I am a member of a group that loves using Gitea and this bug has been
annoying us for a long time. Hope it can be merged in time for Gitea
1.23.0.

Any feedback much appreciated.

Fixes 
2024-12-11 16:20:04 +00:00
Blender Defender 18061af490
Rearrange Clone Panel ()
Rearrange the clone panel to use less horizontal space.
The following changes have been made to achieve this:
- Moved everything into the dropdown menu
- Moved the HTTPS/SSH Switch to a separate line
- Moved the "Clone in VS Code"-Button up and added a divider
- Named the dropdown button "Code", added appropriate icon

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-11 21:54:30 +08:00