]> source.dussan.org Git - gitea.git/commit
Fix pull request check list is limited (#26179)
authorcaicandong <50507092+CaiCandong@users.noreply.github.com>
Mon, 31 Jul 2023 02:21:09 +0000 (10:21 +0800)
committerGitHub <noreply@github.com>
Mon, 31 Jul 2023 02:21:09 +0000 (02:21 +0000)
commit983167cf49cd64c7a1f28c39aff03e00dd387990
treea83bc57f7d441c0027a58e7ac0e7855f5940ffb3
parentea385f5d39a286ec36f3735fc7c5211b141f6165
Fix pull request check list is limited (#26179)

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
models/git/commit_status.go
routers/web/repo/commit.go
routers/web/repo/pull.go
routers/web/repo/view.go
services/actions/commit_status.go
services/pull/commit_status.go
services/pull/pull.go