Skip to content

Commit

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

fix go-gitea#29656

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

Please sign in to comment.