From a4d63a91a24780f77a28d122a60545936e8346e9 Mon Sep 17 00:00:00 2001
From: Mike Greiling <mike@pixelcog.com>
Date: Fri, 7 Oct 2016 18:30:42 -0500
Subject: [PATCH] prevent pipeline emails from using the normal layout wrapper

---
 app/mailers/emails/pipelines.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/mailers/emails/pipelines.rb b/app/mailers/emails/pipelines.rb
index 941ba2643ab..5296e6fc61b 100644
--- a/app/mailers/emails/pipelines.rb
+++ b/app/mailers/emails/pipelines.rb
@@ -19,7 +19,10 @@ module Emails
                 target_branch: @project.default_branch)
       add_headers
 
-      mail(to: to, subject: pipeline_subject(status))
+      mail(to: to, subject: pipeline_subject(status)) do |format|
+        format.html { render layout: false }
+        format.text
+      end
     end
 
     def add_headers
-- 
GitLab