forgejo/models/git
Giteabot c2f2fed57a
Fix pull request check list is limited (#26179) (#26245)
Backport #26179 by @CaiCandong

In the original implementation, we can only get the first 30 records of
the commit status (the default paging size), if the commit status is
more than 30, it will lead to the bug #25990. I made the following two
changes.
- On the page, use the ` db.ListOptions{ListAll: true}` parameter
instead of `db.ListOptions{}`
- The `GetLatestCommitStatus` function makes a determination as to
whether or not a pager is being used.

fixed #25990

Co-authored-by: caicandong <50507092+CaiCandong@users.noreply.github.com>
(cherry picked from commit 060026995a)
2023-08-21 07:22:15 +02:00
..
branches.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
branches_test.go Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
commit_status.go Fix pull request check list is limited (#26179) (#26245) 2023-08-21 07:22:15 +02:00
commit_status_test.go Use context parameter in models/git (#22367) 2023-01-09 11:50:54 +08:00
lfs.go Fix bugs in LFS meta garbage collection (#26122) (#26157) 2023-07-30 07:43:05 +02:00
lfs_lock.go Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
protected_banch_list_test.go Fix branch protection priority (#24045) 2023-04-11 13:22:49 -04:00
protected_branch.go Rename repo.GetOwner to repo.LoadOwner (#22967) 2023-02-18 20:11:03 +08:00
protected_branch_list.go Fix branch protection priority (#24045) 2023-04-11 13:22:49 -04:00
protected_branch_test.go Supports wildcard protected branch (#20825) 2023-01-16 16:00:22 +08:00
protected_tag.go Use context parameter in models/git (#22367) 2023-01-09 11:50:54 +08:00
protected_tag_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00