mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 19:11:58 +01:00
Fix commit_status problem when testing (#29672)
Close #29661 fix #29656 Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 0c273f12e0b5d6dc2b80e2e6b51b2deaf15608b1)
This commit is contained in:
parent
4511287676
commit
e731e0c346
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,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 a new issue