summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnton Baklanov <antonbaklanov@gmail.com>2015-12-19 21:04:40 +0200
committerAnton Baklanov <antonbaklanov@gmail.com>2016-01-19 20:18:39 +0200
commit84124380e815e549f50d82051b2b546c12d9a724 (patch)
tree9d95beb6c17bb77a78cb6f25d1efeaa92d17dd8d /lib
parent340df52bc7734ff76e75aae113313259e42680fb (diff)
downloadgitlab-ce-84124380e815e549f50d82051b2b546c12d9a724.tar.gz
Added X-GitLab-... headers to emails from CI and Email On Push services
Fixes #2098
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/email/message/repository_push.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/email/message/repository_push.rb b/lib/gitlab/email/message/repository_push.rb
index a2eb7a70bd2..a05ffeb9cd2 100644
--- a/lib/gitlab/email/message/repository_push.rb
+++ b/lib/gitlab/email/message/repository_push.rb
@@ -9,6 +9,7 @@ module Gitlab
delegate :namespace, :name_with_namespace, to: :project, prefix: :project
delegate :name, to: :author, prefix: :author
+ delegate :username, to: :author, prefix: :author
def initialize(notify, project_id, recipient, opts = {})
raise ArgumentError, 'Missing options: author_id, ref, action' unless