diff options
Diffstat (limited to 'app/mailers/emails')
-rw-r--r-- | app/mailers/emails/pipelines.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/mailers/emails/pipelines.rb b/app/mailers/emails/pipelines.rb index 2b2b7a4f08c..9aae39fa220 100644 --- a/app/mailers/emails/pipelines.rb +++ b/app/mailers/emails/pipelines.rb @@ -34,8 +34,10 @@ module Emails end def pipeline_subject(status) - subject( - "Pipeline #{status} for #{@project.name}", @pipeline.short_sha) + ref = @pipeline.short_sha + ref << " in #{@merge_request.to_reference}" if @merge_request + + subject("Pipeline ##{@pipeline.id} has #{status}", ref) end end end |