From 0c273f12e0b5d6dc2b80e2e6b51b2deaf15608b1 Mon Sep 17 00:00:00 2001 From: charles <30816317+charles7668@users.noreply.github.com> Date: Fri, 8 Mar 2024 23:43:48 +0800 Subject: [PATCH] Fix commit_status problem when testing (#29672) Close #29661 fix #29656 Co-authored-by: Giteabot --- 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 07e9eb795936..653bfe6bcb38 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