From: guillep2k <18600385+guillep2k@users.noreply.github.com> Date: Fri, 20 Dec 2019 22:31:05 +0000 (-0300) Subject: Fix wrong notification on merge (#9450) X-Git-Tag: v1.11.0-rc1~99 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f42e03a3504e326b4f61969b796e8548598c49d;p=gitea.git Fix wrong notification on merge (#9450) --- diff --git a/modules/notification/mail/mail.go b/modules/notification/mail/mail.go index 38146cef2e..e9a6ad7af2 100644 --- a/modules/notification/mail/mail.go +++ b/modules/notification/mail/mail.go @@ -106,7 +106,7 @@ func (m *mailNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *mode return } - if err := mailer.MailParticipants(pr.Issue, doer, models.ActionClosePullRequest); err != nil { + if err := mailer.MailParticipants(pr.Issue, doer, models.ActionMergePullRequest); err != nil { log.Error("MailParticipants: %v", err) } }