From f1e8b8c0d791cf8f47def243738c059fc29230e9 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 4 May 2021 14:03:31 +0200 Subject: [PATCH] Only log Error on getLastCommitStatus error to let pull list still be visible (#15715) --- services/pull/pull.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/pull/pull.go b/services/pull/pull.go index 153a75094..cc560fb19 100644 --- a/services/pull/pull.go +++ b/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 }