include pipeline ref in subject line

This commit is contained in:
Mike Greiling 2016-10-06 10:12:59 -05:00
parent 60caeb14a7
commit 9c931c63c9

View file

@ -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