mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Prevent duplicate actions email (#35215)
Trying to prevent duplicate action emails by adding an extra check on job status. --------- Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
This commit is contained in:
		| @@ -208,8 +208,7 @@ func (m *mailNotifier) RepoPendingTransfer(ctx context.Context, doer, newOwner * | ||||
| } | ||||
|  | ||||
| func (m *mailNotifier) WorkflowRunStatusUpdate(ctx context.Context, repo *repo_model.Repository, sender *user_model.User, run *actions_model.ActionRun) { | ||||
| 	if !run.Status.IsDone() { | ||||
| 		return | ||||
| 	if err := MailActionsTrigger(ctx, sender, repo, run); err != nil { | ||||
| 		log.Error("MailActionsTrigger: %v", err) | ||||
| 	} | ||||
| 	MailActionsTrigger(ctx, sender, repo, run) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user