From 52329a4c460ca531aa37f582385201c4dee2008d Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Jul 09 2024 14:29:01 +0000 Subject: 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 --- diff --git a/roles/openshift-apps/poddlers/templates/fedora-messaging.toml b/roles/openshift-apps/poddlers/templates/fedora-messaging.toml index 7f2c695..f831842 100644 --- a/roles/openshift-apps/poddlers/templates/fedora-messaging.toml +++ b/roles/openshift-apps/poddlers/templates/fedora-messaging.toml @@ -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]} """