skip email notification trigger when run is not in final state

This commit is contained in:
badhezi
2025-10-08 11:38:43 +03:00
parent be195659f6
commit 4e10abdb91
+1 -1
View File
@@ -153,7 +153,7 @@ func MailActionsTrigger(ctx context.Context, sender *user_model.User, repo *repo
if setting.MailService == nil {
return nil
}
if !run.Status.IsDone() || run.Status.IsSkipped() {
if !run.Status.IsDone() || run.Status.IsSkipped() || (run.Started == 0 && run.Stopped == 0) {
return nil
}