From 1cd301796c23153a398acc1049428b1b1fb4354a Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Tue, 4 May 2021 14:03:02 +0200
Subject: [PATCH] Only log Error on getLastCommitStatus error to let pull list
 still be visible (#15716)

---
 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 153a75094d..cc560fb199 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
 	}