Skip to content

Commit

Permalink
Fix commit_status problem when testing (#29672)
Browse files Browse the repository at this point in the history
Close #29661

fix #29656

Co-authored-by: Giteabot <teabot@gitea.io>
  • Loading branch information
charles7668 and GiteaBot committed Mar 8, 2024
1 parent a3cfe6f commit 0c273f1
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 0c273f1

Please sign in to comment.