diff options
author | Robert Speicher <robert@gitlab.com> | 2016-01-19 21:23:54 +0000 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-19 16:25:21 -0500 |
commit | 74a6b4b6337de5966a51b28a38c441e990bde485 (patch) | |
tree | 0da2e0da5eb68f068c4f630c666b8f86001129a9 /lib | |
parent | 91af0864f1f132eb6ba77d7ed72f53cd67b82999 (diff) | |
download | gitlab-ce-74a6b4b6337de5966a51b28a38c441e990bde485.tar.gz |
Merge branch 'add_email_headers' into 'master'
Added X-GitLab-... headers to emails from CI and Email On Push services
Fixes #2098
This adds the 'X-GitLab-Project', 'X-GitLab-Project-Id' and
'X-GitLab-Project-Path' headers to emails from CI and Email On Push in a way
that it is done currently for merge requests and issues emails.
Additionally, CI emails will have 'X-GitLab-Build-Status' header with either
'fail' or 'success'.
Emails from Email On Push will include 'X-Gitlab-Author' header containing the
username of user who did the push.
See merge request !2159
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/email/message/repository_push.rb | 1 |
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 |