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:
parent
abbddf11db
commit
52329a4c46
1 changed files with 3 additions and 2 deletions
|
@ -303,13 +303,14 @@ notify_emails = [
|
|||
[consumer_config.distgit_commit_processor]
|
||||
mail_from = "notifications@{{ 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
|
||||
# mail_subject_tmpl = "{message.summary}"
|
||||
mail_content_tmpl = """Notification time stamped {headers['sent-at']}
|
||||
mail_content_tmpl = """Notification time stamped {headers[sent-at]}
|
||||
|
||||
{message}
|
||||
|
||||
{commit['url']}
|
||||
{commit[url]}
|
||||
"""
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue