summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-07-28 21:00:32 -0600
committerDouwe Maan <douwe@selenight.nl>2016-07-28 21:00:32 -0600
commitac6b634d9e1afb36c8ebb0d84cd23465fe4b0f84 (patch)
treebde86426b2dbfc059c4c27d770f4b9d3187c7da6 /app/mailers
parentfa4a613517a4a236ea5e98a1964e52c8b4eef595 (diff)
downloadgitlab-ce-ac6b634d9e1afb36c8ebb0d84cd23465fe4b0f84.tar.gz
Send notification email when all discussions are resolved
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/merge_requests.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/mailers/emails/merge_requests.rb b/app/mailers/emails/merge_requests.rb
index 9dd11d20ea6..3c507c53fa9 100644
--- a/app/mailers/emails/merge_requests.rb
+++ b/app/mailers/emails/merge_requests.rb
@@ -42,6 +42,13 @@ module Emails
mail_answer_thread(@merge_request, merge_request_thread_options(updated_by_user_id, recipient_id))
end
+ def resolved_all_discussions_email(recipient_id, merge_request_id, resolved_by_user_id)
+ setup_merge_request_mail(merge_request_id, recipient_id)
+
+ @resolved_by = User.find(resolved_by_user_id)
+ mail_answer_thread(@merge_request, merge_request_thread_options(resolved_by_user_id, recipient_id))
+ end
+
private
def setup_merge_request_mail(merge_request_id, recipient_id)