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