]> source.dussan.org Git - gitea.git/commitdiff
Fix wrong notification on merge (#9450)
authorguillep2k <18600385+guillep2k@users.noreply.github.com>
Fri, 20 Dec 2019 22:31:05 +0000 (19:31 -0300)
committerzeripath <art27@cantab.net>
Fri, 20 Dec 2019 22:31:05 +0000 (22:31 +0000)
modules/notification/mail/mail.go

index 38146cef2ed253173cf38f521e1d953461162682..e9a6ad7af2025299ef435ef6f95744454af6e49e 100644 (file)
@@ -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)
        }
 }