diff options
author | Nick Thomas <nick@gitlab.com> | 2016-08-13 00:54:32 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2016-08-13 00:54:32 +0300 |
commit | 59bfa0809822c3dd257748197223809922ab5f80 (patch) | |
tree | 8c5d247402532e0995f7f9f25203c6e787c3ed74 /app/mailers/emails/issues.rb | |
parent | b2828d4145ac01468a59b821ced29dd248526089 (diff) |
Send notification emails when users are newly mentioned in issue edits
Diffstat (limited to 'app/mailers/emails/issues.rb')
-rw-r--r-- | app/mailers/emails/issues.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/mailers/emails/issues.rb b/app/mailers/emails/issues.rb index 6f54c42146c..d64e48f774b 100644 --- a/app/mailers/emails/issues.rb +++ b/app/mailers/emails/issues.rb @@ -6,6 +6,11 @@ module Emails mail_new_thread(@issue, issue_thread_options(@issue.author_id, recipient_id)) end + def new_mention_in_issue_email(recipient_id, issue_id, updated_by_user_id) + setup_issue_mail(issue_id, recipient_id) + mail_answer_thread(@issue, issue_thread_options(updated_by_user_id, recipient_id)) + end + def reassigned_issue_email(recipient_id, issue_id, previous_assignee_id, updated_by_user_id) setup_issue_mail(issue_id, recipient_id) |