aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/pull_commit_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix test code (#33829)wxiaoguang2025-03-101-0/+4
| | | Do not use onGiteaRun if there is no git operation
* Full-file syntax highlighting for diff pages (#33766)Dustin Firebaugh2025-03-091-17/+20
| | | | | | | | | | | | Fix #33358, fix #21970 This adds a step in the `GitDiffForRender` that does syntax highlighting for the entire file and then only references lines from that syntax highlighted code. This allows things like multi-line comments to be syntax highlighted correctly. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Use batch database operations instead of one by one to optimze api pulls ↵Lunny Xiao2024-12-111-2/+2
| | | | | | | | | | | | | | | | | | | | (#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`.
* Fix the logic of finding the latest pull review commit ID (#32139)Zettat1232024-10-011-0/+34
Fix #31423