debian-mirror-gitlab/app/mailers/emails/auto_devops.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
481 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
module Emails
module AutoDevops
def autodevops_disabled_email(pipeline, recipient)
@pipeline = pipeline
@project = pipeline.project
add_project_headers
2022-07-23 23:45:48 +05:30
email_with_layout(
to: recipient,
subject: auto_devops_disabled_subject(@project.name))
2018-11-20 20:47:30 +05:30
end
private
def auto_devops_disabled_subject(project_name)
subject("Auto DevOps pipeline was disabled for #{project_name}")
end
end
end