Skip to content

Commit 1cd3017

Browse files
authored
Only log Error on getLastCommitStatus error to let pull list still be visible (#15716)
1 parent ed39377 commit 1cd3017

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/pull/pull.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,8 @@ func GetIssuesLastCommitStatus(issues models.IssueList) (map[int64]*models.Commi
677677

678678
status, err := getLastCommitStatus(gitRepo, issue.PullRequest)
679679
if err != nil {
680-
return nil, err
680+
log.Error("getLastCommitStatus: cant get last commit of pull [%d]: %v", issue.PullRequest.ID, err)
681+
continue
681682
}
682683
res[issue.PullRequest.ID] = status
683684
}

0 commit comments

Comments
 (0)