diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-10-14 19:54:51 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-10-14 19:54:51 +0800 |
commit | 7d97a22e860b92a58f862214a6d13f9e5e29c64a (patch) | |
tree | 95b9f37c6bd4cdae55fdd62ed1d7dfb5f27ce2f5 /app/mailers | |
parent | dc1d269f67f63eab5f358306ce394b5831377bf7 (diff) | |
download | gitlab-ce-7d97a22e860b92a58f862214a6d13f9e5e29c64a.tar.gz |
Just show the first merge request we found, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16963209
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/emails/pipelines.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/emails/pipelines.rb b/app/mailers/emails/pipelines.rb index 92f1431ce66..601c8b5cd62 100644 --- a/app/mailers/emails/pipelines.rb +++ b/app/mailers/emails/pipelines.rb @@ -13,7 +13,7 @@ module Emails def pipeline_mail(pipeline, to, status) @project = pipeline.project @pipeline = pipeline - @merge_request = pipeline.merge_requests_with_active_first.first + @merge_request = pipeline.merge_requests.first add_headers mail(to: to, subject: pipeline_subject(status), skip_premailer: true) do |format| |