Skip to content

Commit

Permalink
Fix commit_status problem when testing (#29672) (#29675)
Browse files Browse the repository at this point in the history
Backport #29672 by @charles7668

Close #29661

fix #29656

Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
  • Loading branch information
GiteaBot and charles7668 authored Mar 8, 2024
1 parent a129c0c commit 1f89763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/pull/commit_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f89763

Please sign in to comment.