This commit is contained in:
wxiaoguang
2025-05-28 03:41:18 +08:00
parent 40bcd57d44
commit 8d78184596
5 changed files with 21 additions and 173 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ func CalcCommitStatus(statuses []*CommitStatus) *CommitStatus {
var lastStatus *CommitStatus
state := api.CommitStatusSuccess
for _, status := range statuses {
if status.State.NoBetterThan(state) {
if status.State.HasHigherPriorityThan(state) {
state = status.State
lastStatus = status
}