Commit 4bc70127 authored by Toon Claes's avatar Toon Claes
Browse files

Make it possible to preview pipeline success/failed emails

Visit `/rails/mailers/notify` on your local running GitLab instance to
show a preview pipeline success emails.
parent a7ba31312e00
class NotifyPreview < ActionMailer::Preview
def pipeline_success_email
pipeline = Ci::Pipeline.last
Notify.pipeline_success_email(pipeline, pipeline.user.try(:email))
end
def pipeline_failed_email
pipeline = Ci::Pipeline.last
Notify.pipeline_failed_email(pipeline, pipeline.user.try(:email))
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment