Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-10-14 14:54:51 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-10-14 14:54:51 +0300
commit7d97a22e860b92a58f862214a6d13f9e5e29c64a (patch)
tree95b9f37c6bd4cdae55fdd62ed1d7dfb5f27ce2f5 /app/mailers/emails
parentdc1d269f67f63eab5f358306ce394b5831377bf7 (diff)
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/emails')
-rw-r--r--app/mailers/emails/pipelines.rb2
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|