mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
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)
|
status := git_model.CalcCommitStatus(commitStatuses)
|
||||||
if status != nil {
|
if status != nil {
|
||||||
return status.State
|
return status.State
|
||||||
|
Loading…
Reference in New Issue
Block a user