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
lfs.go Fix bugs in LFS meta garbage collection (#26122) (#26157) 2023-07-30 07:43:05 +02:00
lfs_lock.go
main_test.go
protected_banch_list_test.go Fix branch protection priority (#24045) 2023-04-11 13:22:49 -04:00
protected_branch.go
protected_branch_list.go Fix branch protection priority (#24045) 2023-04-11 13:22:49 -04:00
protected_branch_test.go
protected_tag.go
protected_tag_test.go