aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug webhook milestone is not right. (#34419) (#34429)Giteabot2025-05-122-0/+81
| | | | | | | | | | Backport #34419 by @lunny Fix #34400 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Fix a bug when uploading file via lfs ssh command 1.23 (#34408) (#34411)wxiaoguang2025-05-091-1/+40
| | | Partially backport #34408
* Fix bug when API get pull changed files for deleted head repository (#34333) ↵Giteabot2025-05-051-0/+98
| | | | | | | | | (#34368) Backport #34333 by @lunny --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix panic when comment is nil (#34257) (#34277)Lunny Xiao2025-04-241-21/+3
| | | | Fix #34254 Backport #34257
* Swift files can be passed either as file or as form value (#34068) (#34236)Giteabot2025-04-181-4/+94
| | | | | | | | Backport #34068 by wgr1984 Fix #33990 Co-authored-by: Wolfgang Reithmeier <w.reithmeier@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Get changed files based on merge base when checking `pull_request` actions ↵Zettat1232025-04-031-0/+110
| | | | | | | trigger (#34106) (#34120) Backport #34106 Fix #33941
* Do not show 500 error when default branch doesn't exist (#34096) (#34097)wxiaoguang2025-04-021-0/+12
| | | Backport #34096
* Add a config option to block "expensive" pages for anonymous users (#34024) ↵wxiaoguang2025-03-305-9/+37
| | | | | | (#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-4/+40
| | | | | | | | | | | (#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-1/+25
| | | Backport #34034
* Fix LFS URL (#33840) (#33843)Giteabot2025-03-105-1/+10
| | | | | | | | | Backport #33840 by wxiaoguang Fix #33839 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Do not call "git diff" when listing PRs (#33817)wxiaoguang2025-03-082-23/+24
| | | Fix #31492
* Support disable passkey auth (#33348) (#33819)wxiaoguang2025-03-071-1/+19
| | | | | | | | * Backport #33348 * Backport #33820 --------- Co-authored-by: yp05327 <576951401@qq.com>
* Fix for Maven Package Naming Convention Handling (#33678) (#33679)Giteabot2025-02-211-0/+14
| | | | | | | Backport #33678 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>
* Fix project issues list and counting (#33594) (#33619)Giteabot2025-02-181-1/+1
| | | | | | | | | 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>
* Only show the latest version in the Arch index (#33262) (#33580)Giteabot2025-02-131-29/+63
| | | | | | | | | | 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>
* Enhance routers for the Actions runner operations (#33549) (#33555)Lunny Xiao2025-02-111-0/+151
| | | | | | | | | | 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-111-0/+149
| | | | | | | Backport #33547 Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
* Add tests for webhook and fix some webhook bugs (#33396) (#33442)Lunny Xiao2025-02-028-16/+614
| | | | | | | | | | | | | | | 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 `GetCommitBranchStart` bug (#33298) (#33421)Giteabot2025-02-011-26/+45
| | | | | | | | | | | | | | Backport #33298 by Zettat123 Fix #33265 Fix #33370 This PR also fixes some bugs in `TestGitGeneral`. --------- Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix system admin cannot fork or get private fork with API (#33401) (#33417)Giteabot2025-01-272-3/+33
| | | | | | | Backport #33401 by @lunny Fix #33368 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add pubdate for repository rss and add some tests (#33411) (#33416)Giteabot2025-01-272-1/+59
| | | | | | | 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-6/+3
| | | | | | | | | Backport #33402 by wxiaoguang Fix #33400 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Improve sync fork behavior (#33319) (#33332)wxiaoguang2025-01-201-11/+40
| | | | | | | | 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 Account linking page (#33325) (#33327)Giteabot2025-01-191-0/+20
| | | | | | | | | | | | 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-66/+50
| | | | | | | | | Backport #33215 Manually resolved "reqctx" conflict --------- Co-authored-by: Chai-Shi <changchaishi@gmail.com>
* Fix tag route and empty repo (#33253)wxiaoguang2025-01-141-1/+20
|
* Fix sync fork for consistency (#33147) (#33192)Giteabot2025-01-101-0/+122
| | | | | | | | | | | | 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-101-24/+34
| | | | | | | Backport #33172 by wxiaoguang Fix #33164 and add more tests Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix fuzz test (#33156) (#33158)Giteabot2025-01-091-0/+2
| | | | | Backport #33156 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix package error handling and npm meta and empty repo guide (#33112)wxiaoguang2025-01-062-19/+34
|
* Refactor maven package registry (#33049) (#33057)wxiaoguang2024-12-311-38/+70
| | | Backport #33049
* Fix templating in pull request comparison (#33025) (#33038)Giteabot2024-12-291-0/+68
| | | | | | | | | | | Backport #33025 by TheFox0x7 Adds test for expected behavior Closes: https://github.com/go-gitea/gitea/issues/33013 --- Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
* Fix Agit pull request permission check (#32999) (#33005)Giteabot2024-12-281-0/+19
| | | | | | | | | | | | 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-272-10/+17
| | | | | | | | | | user account (#32998) (#33001) Backport #32998 by Zettat123 Fix #32807 Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Support org labels when adding labels by label names (#32988) (#32996)Giteabot2024-12-271-9/+15
| | | | | | | Backport #32988 by @Zettat123 Fix #32891 Co-authored-by: Zettat123 <zettat123@gmail.com>
* Refactor some LDAP code (#32849)wxiaoguang2024-12-151-139/+217
|
* Enable tenv and testifylint rules (#32852)TheFox0x72024-12-1533-79/+75
| | | | Enables tenv and testifylint linters closes: https://github.com/go-gitea/gitea/issues/32842
* Avoid MacOS keychain dialog in integration tests (#32813)Rowan Bohde2024-12-121-0/+5
| | | | | | | | | | | | | | | | Mac's git installation ships with a system wide config that configures the credential helper `osxkeychain`, which will prompt the user with a dialog. ``` $ git config list --system credential.helper=osxkeychain ``` By setting the environment variable [`GIT_CONFIG_NOSYSTEM=true`](https://git-scm.com/docs/git-config#ENVIRONMENT), Git will not load the system wide config, preventing the dialog from populating. Closes #26717
* Make API "compare" accept commit IDs (#32801)wxiaoguang2024-12-122-9/+21
|
* Implement update branch API (#32433)Kemal Zebari2024-12-121-0/+32
| | | | | | | | | | Resolves #22526. Builds upon #23061. --------- Co-authored-by: sillyguodong <33891828+sillyguodong@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add standard-compliant route to serve outdated R packages (#32783)Sebastian T. T.2024-12-111-0/+8
| | | | | | | | | | | | | 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 #32782
* Fix repo home file list (#32788)wxiaoguang2024-12-111-3/+3
| | | | | | | 1. use grid instead of table, completely drop "ui table" from that list 2. move some "commit sign" related styles into a new file by the way (no change) because I need to figure out where `#repo-files-table` is used. 3. move legacy "branch/tag selector" related code into repo-legacy.ts, now there are 13 `import $` files left.
* Rearrange Clone Panel (#31142)Blender Defender2024-12-111-4/+4
| | | | | | | | | | | | | 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>
* Use batch database operations instead of one by one to optimze api pulls ↵Lunny Xiao2024-12-114-11/+88
| | | | | | | | | | | | | | | | | | | | (#32680) Resolve #31492 The response time for the Pull Requests API has improved significantly, dropping from over `2000ms` to about `350ms` on my local machine. It's about `6` times faster. A key area for further optimization lies in batch-fetching data for `apiPullRequest.ChangedFiles, apiPullRequest.Additions, and apiPullRequest.Deletions`. Tests `TestAPIViewPulls` does exist and new tests added. - This PR also fixes some bugs in `GetDiff` functions. - This PR also fixes data inconsistent in test data. For a pull request, the head branch's reference should be equal to the reference in `pull/xxx/head`.
* Make wiki pages visit fast (#32732)Lunny Xiao2024-12-061-0/+23
|
* Issue time estimate, meaningful time tracking (#23113)Illya Marchenko2024-12-052-34/+29
| | | | | | | | | | | | | 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>
* Add Arch package registry (#32692)KN4CK3R2024-12-041-0/+302
| | | | | | | | | | | | | | | | | | | | | | | Close #25037 Close #31037 This PR adds a Arch package registry usable with pacman. ![grafik](https://github.com/user-attachments/assets/81cdb0c2-02f9-4733-bee2-e48af6b45224) Rewrite of #25396 and #31037. You can follow [this tutorial](https://wiki.archlinux.org/title/Creating_packages) to build a package for testing. Docs PR: https://gitea.com/gitea/docs/pulls/111 Co-authored-by: [d1nch8g@ion.lc](mailto:d1nch8g@ion.lc) Co-authored-by: @ExplodingDragon --------- Co-authored-by: dancheg97 <dancheg97@fmnx.su> Co-authored-by: dragon <ExplodingFKL@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix delete branch perm checking (#32654)Lunny Xiao2024-12-041-0/+29
|
* Add Swift login endpoint (#32693)KN4CK3R2024-12-031-0/+18
| | | | | Fix #32683 This PR adds the login endpoint and fixes the documentation links.