summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-10-06 10:12:59 -0500
committerMike Greiling <mike@pixelcog.com>2016-10-06 10:12:59 -0500
commit9c931c63c9faad1f16d08aff001dc5e97cee1fda (patch)
treeae3177de1784b57960409f7d233879ef33d4b402
parent60caeb14a75f6700a3df6b73b7320737c4256ab2 (diff)
downloadgitlab-ce-9c931c63c9faad1f16d08aff001dc5e97cee1fda.tar.gz
include pipeline ref in subject line
-rw-r--r--app/mailers/emails/pipelines.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/mailers/emails/pipelines.rb b/app/mailers/emails/pipelines.rb
index 9aae39fa220..941ba2643ab 100644
--- a/app/mailers/emails/pipelines.rb
+++ b/app/mailers/emails/pipelines.rb
@@ -34,10 +34,10 @@ module Emails
end
def pipeline_subject(status)
- ref = @pipeline.short_sha
- ref << " in #{@merge_request.to_reference}" if @merge_request
+ commit = @pipeline.short_sha
+ commit << " in #{@merge_request.to_reference}" if @merge_request
- subject("Pipeline ##{@pipeline.id} has #{status}", ref)
+ subject("Pipeline ##{@pipeline.id} has #{status} for #{@pipeline.ref}", commit)
end
end
end