backport #29143 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
c01b266d86
commit
78f41e4fc4
3 changed files with 47 additions and 2 deletions
|
@ -50,6 +50,10 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*git_model.CommitStatus,
|
|||
}
|
||||
}
|
||||
|
||||
if matchedCount != len(requiredContexts) {
|
||||
return structs.CommitStatusPending
|
||||
}
|
||||
|
||||
if matchedCount == 0 {
|
||||
status := git_model.CalcCommitStatus(commitStatuses)
|
||||
if status != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue