Skip to content

Commit

Permalink
Fix commit_status problem when testing. (go-gitea#29661)
Browse files Browse the repository at this point in the history
  • Loading branch information
charles7668 committed Mar 8, 2024
1 parent 930bae2 commit 80df2d5
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 @@ -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
Expand Down

0 comments on commit 80df2d5

Please sign in to comment.