Skip to content

Commit 0c273f1

Browse files
Fix commit_status problem when testing (#29672)
Close #29661 fix #29656 Co-authored-by: Giteabot <[email protected]>
1 parent a3cfe6f commit 0c273f1

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
@@ -59,7 +59,7 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*git_model.CommitStatus,
5959
}
6060
}
6161

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

0 commit comments

Comments
 (0)