toddlers: Fix distgit_commit_processor templates

These are passed to str.format() which confusingly doesn’t expect quotes
around dictionary keys and adds them to the looked up key string,
yay!

Related: #183

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2024-07-08 18:46:29 +02:00 committed by zlopez
parent abbddf11db
commit 52329a4c46

View file

@ -303,13 +303,14 @@ notify_emails = [
[consumer_config.distgit_commit_processor] [consumer_config.distgit_commit_processor]
mail_from = "notifications@{{ env_prefix }}fedoraproject.org" mail_from = "notifications@{{ env_prefix }}fedoraproject.org"
mail_to = "scm-commits@lists.{{ env_prefix }}fedoraproject.org" mail_to = "scm-commits@lists.{{ env_prefix }}fedoraproject.org"
# The templates are passed to str.format() => no quotes in dictionary keys!
# This is the default subject # This is the default subject
# mail_subject_tmpl = "{message.summary}" # mail_subject_tmpl = "{message.summary}"
mail_content_tmpl = """Notification time stamped {headers['sent-at']} mail_content_tmpl = """Notification time stamped {headers[sent-at]}
{message} {message}
{commit['url']} {commit[url]}
""" """