aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-12-11 15:19:57 +0900
committerGitHub <noreply@github.com>2023-12-11 06:19:57 +0000
commit0abb5633e34fd14c2d49de0b4c98f7ba7d98a37e (patch)
tree1b7f2a58e07508b0d0cb9c3721922209bf02926a /routers/web
parent5b2bbf1a1f2527b75d8a64bc36ea735cd19c0efa (diff)
downloadgitea-0abb5633e34fd14c2d49de0b4c98f7ba7d98a37e.tar.gz
gitea-0abb5633e34fd14c2d49de0b4c98f7ba7d98a37e.zip
Fix commit status in repo list (#28412)
Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/00edf23a-aee1-4177-a12c-bd03ae14e65e) ![image](https://github.com/go-gitea/gitea/assets/18380374/0663e443-682c-4a68-b14e-a0fa0e4c3716) `TestOrg/testactions` does have commit status, but won't display in `All` After: ![image](https://github.com/go-gitea/gitea/assets/18380374/7231db29-9c4e-484f-afa2-87db19be19b8) Same to #26179.
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go
index b3b6b48871..482fbaac2b 100644
--- a/routers/web/repo/repo.go
+++ b/routers/web/repo/repo.go
@@ -606,7 +606,7 @@ func SearchRepo(ctx *context.Context) {
}
// call the database O(1) times to get the commit statuses for all repos
- repoToItsLatestCommitStatuses, err := git_model.GetLatestCommitStatusForPairs(ctx, repoIDsToLatestCommitSHAs, db.ListOptions{})
+ repoToItsLatestCommitStatuses, err := git_model.GetLatestCommitStatusForPairs(ctx, repoIDsToLatestCommitSHAs, db.ListOptionsAll)
if err != nil {
log.Error("GetLatestCommitStatusForPairs: %v", err)
return