forked from gitea/gitea
Fix commit_status problem when testing (#29672)
Close #29661 fix #29656 Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
a3cfe6f39b
commit
0c273f12e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue