summaryrefslogtreecommitdiff
path: root/zuul
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2022-07-29 09:38:02 -0500
committerJoshua Watt <JPEWhacker@gmail.com>2022-07-29 09:40:57 -0500
commit86c4367bdd989e41b893fb1d1384857ba421f7eb (patch)
tree399c7f116b29b14720b5233e17012407c15b20bf /zuul
parent559602910ff57f90e6478e748d17e0e298430c73 (diff)
downloadzuul-86c4367bdd989e41b893fb1d1384857ba421f7eb.tar.gz
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
Diffstat (limited to 'zuul')
-rw-r--r--zuul/driver/smtp/smtpreporter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/zuul/driver/smtp/smtpreporter.py b/zuul/driver/smtp/smtpreporter.py
index 4815026ab..a5d8938c1 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)