Skip to content

Commit 0506162

Browse files
committed
update
1 parent e212011 commit 0506162

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

services/mailer/mail_workflow_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func MailActionsTrigger(ctx context.Context, sender *user_model.User, repo *repo
149149
if setting.MailService == nil {
150150
return
151151
}
152-
if run.Status.IsSkipped() {
152+
if !run.Status.IsDone() || run.Status.IsSkipped() {
153153
return
154154
}
155155

services/mailer/notify.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,5 @@ func (m *mailNotifier) RepoPendingTransfer(ctx context.Context, doer, newOwner *
208208
}
209209

210210
func (m *mailNotifier) WorkflowRunStatusUpdate(ctx context.Context, repo *repo_model.Repository, sender *user_model.User, run *actions_model.ActionRun) {
211-
if !run.Status.IsDone() {
212-
return
213-
}
214211
MailActionsTrigger(ctx, sender, repo, run)
215212
}

0 commit comments

Comments
 (0)