mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 18:36:53 +08:00
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:
@@ -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]}
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user