mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix commit status in repo list (#28412)
Before:   `TestOrg/testactions` does have commit status, but won't display in `All` After:  Same to #26179.
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user