From 86c4367bdd989e41b893fb1d1384857ba421f7eb Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Fri, 29 Jul 2022 09:38:02 -0500 Subject: [PATCH] smtpreporter: Add pipeline to subject Adds the pipeline for the change to the subject format. This makes it easier to include information about the pipeline (e.g. its name) in the e-mail subject Change-Id: I6ec973635543b4404c125589f23ffd1ba5504c17 --- zuul/driver/smtp/smtpreporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zuul/driver/smtp/smtpreporter.py b/zuul/driver/smtp/smtpreporter.py index 4815026abd..a5d8938c11 100644 --- a/zuul/driver/smtp/smtpreporter.py +++ b/zuul/driver/smtp/smtpreporter.py @@ -42,7 +42,7 @@ class SMTPReporter(BaseReporter): if 'subject' in self.config: subject = self.config['subject'].format( - change=item.change) + change=item.change, pipeline=item.pipeline.getSafeAttributes()) else: subject = "Report for change {change} against {ref}".format( change=item.change, ref=item.change.ref)