Skip to content

Commit 1f89763

Browse files
Fix commit_status problem when testing (#29672) (#29675)
Backport #29672 by @charles7668 Close #29661 fix #29656 Co-authored-by: charles <[email protected]>
1 parent a129c0c commit 1f89763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/pull/commit_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*git_model.CommitStatus,
5858
}
5959
}
6060

61-
if matchedCount == 0 {
61+
if matchedCount == 0 && returnedStatus == structs.CommitStatusSuccess {
6262
status := git_model.CalcCommitStatus(commitStatuses)
6363
if status != nil {
6464
return status.State

0 commit comments

Comments
 (0)