aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
Commit message (Collapse)AuthorAgeFilesLines
* Do not show 500 error when default branch doesn't exist (#34096) (#34097)wxiaoguang2025-04-022-3/+23
| | | Backport #34096
* Hide activity contributors, recent commits and code frequrency left tabs if ↵Lunny Xiao2025-03-303-29/+17
| | | | | | | | | | | | | 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>
* Add a config option to block "expensive" pages for anonymous users (#34024) ↵wxiaoguang2025-03-302-9/+9
| | | | | | (#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.
* Pull request updates will also trigger code owners review requests (#33744) ↵Lunny Xiao2025-03-281-2/+1
| | | | | | | | | | | (#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>
* Fix git client accessing renamed repo (#34034) (#34043)wxiaoguang2025-03-281-15/+1
| | | Backport #34034
* Fix oauth2 auth (#33961) (#33962)wxiaoguang2025-03-211-1/+1
| | | | | Backport #33961 UI fix is not needed.
* Fix auto concurrency cancellation skips commit status updates (#33764) (#33849)ChristopherHX2025-03-112-3/+2
| | | | | Backport #33764 * add missing commit status * conflicts with concurrency support
* Support disable passkey auth (#33348) (#33819)wxiaoguang2025-03-073-0/+14
| | | | | | | | * Backport #33348 * Backport #33820 --------- Co-authored-by: yp05327 <576951401@qq.com>
* Fix project issues list and counting (#33594) (#33619)Giteabot2025-02-183-5/+30
| | | | | | | | | 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 PR's target branch dropdown (#33589) (#33591)wxiaoguang2025-02-141-8/+16
| | | Backport #33589
* Performance optimization for pull request files loading comments attachments ↵Giteabot2025-02-141-6/+6
| | | | | | | (#33585) (#33592) Backport #33585 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix various problems (artifact order, api empty slice, assignee check, fuzzy ↵Giteabot2025-02-131-4/+7
| | | | | | | | | | | | | | 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>
* Fix context usage (#33554) (#33557)wxiaoguang2025-02-111-1/+1
| | | Backport #33554
* Enhance routers for the Actions runner operations (#33549) (#33555)Lunny Xiao2025-02-113-207/+227
| | | | | | | | | | 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>
* Enhance routers for the Actions variable operations (#33547) (#33553)Lunny Xiao2025-02-113-158/+177
| | | | | | | 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-111-49/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 commit status events (#33320) (#33493)Lunny Xiao2025-02-051-0/+1
| | | | | | | | | Fix #32873 Fix #33201 ~Fix #33244~ ~Fix #33302~ depends on ~#33396~ backport #33320
* Fix user avatar (#33439)wxiaoguang2025-01-303-21/+11
|
* Add pubdate for repository rss and add some tests (#33411) (#33416)Giteabot2025-01-272-0/+2
| | | | | | | Backport #33411 by @lunny Fix #33291 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Use ProtonMail/go-crypto to replace keybase/go-crypto (#33402) (#33410)Giteabot2025-01-271-2/+2
| | | | | | | | | Backport #33402 by wxiaoguang Fix #33400 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Update go tool dependencies (#32916) (#33355)silverwind2025-01-221-3/+0
| | | | Clean cherry-pick of https://github.com/go-gitea/gitea/pull/32916. Update all go tool dependencies to latest version.
* Fix issue count (#33338) (#33341)Giteabot2025-01-211-10/+20
| | | | | | | Backport #33338 by wxiaoguang Fix #33336 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make tracked time representation display as hours (#33315) (#33334)wxiaoguang2025-01-211-1/+1
| | | | | | | | 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>
* Fix Account linking page (#33325) (#33327)Giteabot2025-01-191-0/+11
| | | | | | | | | | | | 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>
* Fix push message behavior (#33215) (#33317)wxiaoguang2025-01-191-1/+19
| | | | | | | | | Backport #33215 Manually resolved "reqctx" conflict --------- Co-authored-by: Chai-Shi <changchaishi@gmail.com>
* Trivial fixes (#33304) (#33312)wxiaoguang2025-01-183-3/+3
| | | | | Backport #33304 The only conflict is caused by `templates/shared/issueicon.tmpl`
* Fix tag route and empty repo (#33253)wxiaoguang2025-01-142-3/+2
|
* Filter reviews of one pull request in memory instead of database to reduce ↵Giteabot2025-01-081-8/+2
| | | | | | | | | | | | | | | 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>
* fix empty repo updated time (#33120) (#33124)Giteabot2025-01-061-1/+4
| | | | | | | | | Backport #33120 by changchaishi fixes #33119 Co-authored-by: Chai-Shi <changchaishi@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix package error handling and npm meta and empty repo guide (#33112)wxiaoguang2025-01-061-0/+1
|
* Fix empty git repo handling logic and fix mobile view (#33101) (#33102)wxiaoguang2025-01-051-16/+30
| | | Backport #33101 and UI fix from main (including #33108)
* Fix bleve fuzziness search (#33078) (#33087)wxiaoguang2025-01-023-46/+23
|
* Fix broken forms (#33082)wxiaoguang2025-01-031-0/+4
|
* Use project's redirect url instead of composing url (#33058) (#33064)Giteabot2024-12-313-9/+16
| | | | | | | | Backport #33058 by lunny Fix #32992 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from ↵Giteabot2024-12-301-11/+5
| | | | latest commit cache (#32987) (#33046)
* Support for email addresses containing uppercase characters when activating ↵Giteabot2024-12-272-3/+3
| | | | | | | | | | user account (#32998) (#33001) Backport #32998 by Zettat123 Fix #32807 Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) (#32964)Giteabot2024-12-242-3/+2
| | | | | | | | | | 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>
* Backport 1.23 (#32868)wxiaoguang2024-12-171-0/+3
| | | Co-authored-by: delvh <dev.lh@web.de>
* Fix bug on action list deleted branch (#32848)Lunny Xiao2024-12-163-4/+41
| | | | | | | | Fix https://github.com/go-gitea/gitea/issues/32761#issuecomment-2540946064 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Enable tenv and testifylint rules (#32852)TheFox0x72024-12-151-2/+2
| | | | Enables tenv and testifylint linters closes: https://github.com/go-gitea/gitea/issues/32842
* Allow to fork repository into the same owner (#32819)wxiaoguang2024-12-141-3/+4
| | | | | | | | | | | | 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)
* Detect whether action view branch was deleted (#32764)Lunny Xiao2024-12-122-2/+46
| | | | | Fix #32761 ![图片](https://github.com/user-attachments/assets/a5a7eef8-0fea-4242-b199-1b0b73d9bbdb)
* Make API "compare" accept commit IDs (#32801)wxiaoguang2024-12-121-2/+0
|
* Add `is_archived` option for issue indexer (#32735)yp053272024-12-121-0/+7
| | | | | | | Try to fix #32697 Reason: `is_archived` is already defined in the query options, but it is not implemented in the indexer.
* Rearrange Clone Panel (#31142)Blender Defender2024-12-111-2/+2
| | | | | | | | | | | | | 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>
* Add label/author/assignee filters to the user/org home issue list (#32779)wxiaoguang2024-12-117-174/+136
| | | | | | | | | | 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.
* Refactor issue filter (labels, poster, assignee) (#32771)wxiaoguang2024-12-104-40/+9
| | | | | | | | | | | | 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)
* Make RepoActionView.vue support `##[group]` (#32770)wxiaoguang2024-12-101-3/+7
|
* Refactor issue list (#32755)wxiaoguang2024-12-083-49/+73
| | | | | 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:
* Fix compare page bug view as anonymous (#32754)Lunny Xiao2024-12-081-1/+3
| | | | Fix a bug introduced from https://github.com/go-gitea/gitea/pull/32403/files#diff-dc86301f15109eee38296d469630672193e0587ad1485fdd8f503bf4c789cf7eR692