From e811f3b1855d2c59cd6b73c49d708d1f861a75aa Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sat, 9 Mar 2024 00:04:23 +0800 Subject: [PATCH] Fix commit_status problem when testing (#29672) (#29675) Backport #29672 by @charles7668 Close #29661 fix #29656 Co-authored-by: charles <30816317+charles7668@users.noreply.github.com> (cherry picked from commit 1f897637441a9a5c43e01b84e374d836d9260a00) --- 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 9504bcf605..59ea25ae77 100644 --- a/services/pull/commit_status.go +++ b/services/pull/commit_status.go @@ -58,7 +58,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