0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-17 19:58:48 +01:00

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

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
}