1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00

Only log Error on getLastCommitStatus error to let pull list still be visible (#15716)

This commit is contained in:
6543 2021-05-04 14:03:02 +02:00 committed by GitHub
parent ed39377900
commit 1cd301796c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -677,7 +677,8 @@ func GetIssuesLastCommitStatus(issues models.IssueList) (map[int64]*models.Commi
status, err := getLastCommitStatus(gitRepo, issue.PullRequest)
if err != nil {
return nil, err
log.Error("getLastCommitStatus: cant get last commit of pull [%d]: %v", issue.PullRequest.ID, err)
continue
}
res[issue.PullRequest.ID] = status
}