Giteabot
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
Giteabot
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
wxiaoguang
8f75f61b64
Do not show 500 error when default branch doesn't exist ( #34096 ) ( #34097 )
...
Backport #34096
2025-04-02 18:16:41 +08:00
Lunny Xiao
f8f24d83cf
Hide activity contributors, recent commits and code frequrency left tabs if there is no code permission ( #34053 ) ( #34065 )
...
Backport #34053
When a team have no code unit permission of a repository, the member of
the team should not view activity contributors, recent commits and code
frequrency.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-30 18:30:55 +08:00
wxiaoguang
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
Lunny Xiao
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
ChristopherHX
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
Giteabot
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
wxiaoguang
d17f8ffcc1
Fix PR's target branch dropdown ( #33589 ) ( #33591 )
...
Backport #33589
2025-02-14 08:38:33 +00:00
Giteabot
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
Giteabot
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
Lunny Xiao
7794ff0874
Enhance routers for the Actions runner operations ( #33549 ) ( #33555 )
...
Backport #33549
- 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 ( #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
Giteabot
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
Lunny Xiao
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
silverwind
987d014468
Update go tool dependencies ( #32916 ) ( #33355 )
...
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
wxiaoguang
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
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
wxiaoguang
bf664c2e85
Trivial fixes ( #33304 ) ( #33312 )
...
Backport #33304
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 ( #33253 )
2025-01-14 14:01:30 +08:00
Giteabot
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
Giteabot
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
wxiaoguang
0fad40dd8c
Fix package error handling and npm meta and empty repo guide ( #33112 )
2025-01-06 14:17:28 +08:00
wxiaoguang
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
wxiaoguang
e10d222434
Fix bleve fuzziness search ( #33078 ) ( #33087 )
2025-01-02 21:45:14 +00:00
wxiaoguang
7a35f90b29
Fix broken forms ( #33082 )
2025-01-03 03:57:34 +08:00
Giteabot
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
Giteabot
610b2fb88d
Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache ( #32987 ) ( #33046 )
2024-12-30 05:17:07 +00:00
wxiaoguang
e98dd6ee5b
Backport 1.23 ( #32868 )
...
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 ( #32848 )
...
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 ( #32852 )
...
Enables tenv and testifylint linters
closes: https://github.com/go-gitea/gitea/issues/32842
2024-12-15 10:41:29 +00:00
wxiaoguang
a66c16dc1b
Allow to fork repository into the same owner ( #32819 )
...
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

2024-12-14 09:39:05 +08:00
Lunny Xiao
6370d2fb93
Detect whether action view branch was deleted ( #32764 )
...
Fix #32761

2024-12-12 19:28:23 +00:00
wxiaoguang
22bf2ca6ba
Make API "compare" accept commit IDs ( #32801 )
2024-12-12 08:10:09 +00:00
yp05327
d43620e7bc
Add is_archived
option for issue indexer ( #32735 )
...
Try to fix #32697
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
Blender Defender
18061af490
Rearrange Clone Panel ( #31142 )
...
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
wxiaoguang
e619384098
Add label/author/assignee filters to the user/org home issue list ( #32779 )
...
Replace #26661 , fix #25979
Not perfect, but usable and much better than before. Since it is quite
complex, I am not quite sure whether there would be any regression, if
any, I will fix in first time.
I have tested the related pages many times: issue list, milestone issue
list, project view, user issue list, org issue list.
2024-12-11 06:33:24 +00:00
wxiaoguang
90d20be541
Refactor issue filter (labels, poster, assignee) ( #32771 )
...
Rewrite a lot of legacy strange code, remove duplicate code, remove
jquery, and make these filters reusable.
Let's forget the old code, new code affects:
* issue list open/close switch
* issue list filter (label, author, assignee)
* milestone list open/close switch
* milestone issue list filter (label, author, assignee)
* project view (label, assignee)
2024-12-10 11:38:22 +08:00
wxiaoguang
23471e1333
Refactor issue list ( #32755 )
...
1. add backend support for filtering "poster" and "assignee"
* due to the limits, there is no frontend support at the moment
2. rewrite TS code without jquery, now there are 14 jQuery files left:
2024-12-08 20:44:17 +08:00
Lunny Xiao
9d08d3fbf5
Fix compare page bug view as anonymous ( #32754 )
...
Fix a bug introduced from
https://github.com/go-gitea/gitea/pull/32403/files#diff-dc86301f15109eee38296d469630672193e0587ad1485fdd8f503bf4c789cf7eR692
2024-12-08 14:38:21 +08:00
Lunny Xiao
cd7bf77b2f
Split issue/pull view router function as multiple smaller functions ( #32749 )
...
This PR splits issue/pull view function into multiple smaller functions.
It also removed duplicated branches load.
2024-12-08 04:39:35 +00:00
metiftikci
ad994780af
fix: render job title as commit message ( #32748 )
...
resolves #32724
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-08 03:23:09 +00:00
metiftikci
6bd70d4d87
fix(project): add title to project view page ( #32747 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-07 12:44:33 +08:00
wxiaoguang
513da407f4
Support "merge upstream branch" (Sync fork) ( #32741 )
...
Add basic "sync fork" support (GitHub-like)
<details>

</details>
2024-12-06 21:10:35 +00:00
yp05327
faf5705d29
GitHub like repo home page ( #32213 )
...
Move some components (description, license, release, language stats) to sidebar
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-06 14:29:04 +00:00
Lunny Xiao
b32f0cdfa0
Make wiki pages visit fast ( #32732 )
2024-12-06 07:39:50 +00:00
wxiaoguang
f7f68e4cc0
Refactor RepoActionView.vue, add ::group::
support ( #32713 )
...
1. make it able to "force reload", then the previous pending request
won't block the new request
2. make it support `::group::`
3. add some TS types (but there are still many variables untyped, this
PR is large enough, the remaining types could be added in the future)
2024-12-06 12:04:16 +08:00
Illya Marchenko
936665bf85
Issue time estimate, meaningful time tracking ( #23113 )
...
Redesign the time tracker side bar, and add "time estimate" support (in "1d 2m" format)
Closes #23112
---------
Co-authored-by: stuzer05 <stuzer05@gmail.com >
Co-authored-by: Yarden Shoham <hrsi88@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-05 13:07:53 +00:00
wxiaoguang
4142397b0b
Fix mentionable users when writing issue comments ( #32715 )
...
Fix #32702
2024-12-04 22:57:50 +08:00
Lunny Xiao
17053e953f
Fix delete branch perm checking ( #32654 )
2024-12-04 11:59:48 +08:00