Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/previews/notify_preview.rb')
-rw-r--r--app/mailers/previews/notify_preview.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/mailers/previews/notify_preview.rb b/app/mailers/previews/notify_preview.rb
index cb7c6a36c27..c70ac1428cd 100644
--- a/app/mailers/previews/notify_preview.rb
+++ b/app/mailers/previews/notify_preview.rb
@@ -165,6 +165,22 @@ class NotifyPreview < ActionMailer::Preview
Notify.unknown_sign_in_email(user, '127.0.0.1', Time.current).message
end
+ def service_desk_new_note_email
+ cleanup do
+ note = create_note(noteable_type: 'Issue', noteable_id: issue.id, note: 'Issue note content')
+
+ Notify.service_desk_new_note_email(issue.id, note.id).message
+ end
+ end
+
+ def service_desk_thank_you_email
+ Notify.service_desk_thank_you_email(issue.id).message
+ end
+
+ def merge_when_pipeline_succeeds_email
+ Notify.merge_when_pipeline_succeeds_email(user.id, merge_request.id, user.id).message
+ end
+
private
def project