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
This commit is contained in:
Joshua Watt 2022-07-29 09:38:02 -05:00
parent 559602910f
commit 86c4367bdd

View File

@ -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)