Browse Source

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

mj-v1.14.3
6543 2 years ago
committed by GitHub
parent
commit
f1e8b8c0d7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      services/pull/pull.go

3
services/pull/pull.go

@ -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
}

Loading…
Cancel
Save