From 80df2d5954c23ed693b38513a8dde9cfbba8cc0b Mon Sep 17 00:00:00 2001 From: charles7668 Date: Fri, 8 Mar 2024 22:18:48 +0800 Subject: [PATCH] Fix commit_status problem when testing. (#29661) --- services/pull/commit_status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/pull/commit_status.go b/services/pull/commit_status.go index 07e9eb7959362..653bfe6bcb38b 100644 --- a/services/pull/commit_status.go +++ b/services/pull/commit_status.go @@ -59,7 +59,7 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*git_model.CommitStatus, } } - if matchedCount == 0 { + if matchedCount == 0 && returnedStatus == structs.CommitStatusSuccess { status := git_model.CalcCommitStatus(commitStatuses) if status != nil { return status.State