mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-21 14:34:43 +02:00
34982#discussion_r2191579495
This commit is contained in:
parent
204f7ca886
commit
d41aee8fa3
@ -57,11 +57,8 @@ func sendActionsWorkflowRunStatusEmail(ctx context.Context, repo *repo_model.Rep
|
|||||||
sort.SliceStable(jobs, func(i, j int) bool {
|
sort.SliceStable(jobs, func(i, j int) bool {
|
||||||
si := jobs[i].Status
|
si := jobs[i].Status
|
||||||
sj := jobs[j].Status
|
sj := jobs[j].Status
|
||||||
if si.IsSuccess() {
|
if si == sj || si.IsSuccess() {
|
||||||
si = 99
|
return false
|
||||||
}
|
|
||||||
if sj.IsSuccess() {
|
|
||||||
sj = 99
|
|
||||||
}
|
}
|
||||||
return si < sj
|
return si < sj
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user