mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-21 18:54:39 +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 {
|
||||
si := jobs[i].Status
|
||||
sj := jobs[j].Status
|
||||
if si.IsSuccess() {
|
||||
si = 99
|
||||
}
|
||||
if sj.IsSuccess() {
|
||||
sj = 99
|
||||
if si == sj || si.IsSuccess() {
|
||||
return false
|
||||
}
|
||||
return si < sj
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user