mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-23 17:02:33 +08:00
Only log Error on getLastCommitStatus error to let pull list still be visible (#15716)
This commit is contained in:
parent
ed39377900
commit
1cd301796c
|
@ -677,7 +677,8 @@ func GetIssuesLastCommitStatus(issues models.IssueList) (map[int64]*models.Commi
|
||||||
|
|
||||||
status, err := getLastCommitStatus(gitRepo, issue.PullRequest)
|
status, err := getLastCommitStatus(gitRepo, issue.PullRequest)
|
||||||
if err != nil {
|
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
|
res[issue.PullRequest.ID] = status
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user