From cec94304ecad77c6c920abd637268313bbf7de18 Mon Sep 17 00:00:00 2001 From: Wilfried Kopp Date: Fri, 22 Apr 2022 11:51:33 +0200 Subject: [PATCH] Fix priority thresholds --- scripts/changelog/templates/change.md.tera | 4 ++-- scripts/changelog/templates/high_priority.md.tera | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/changelog/templates/change.md.tera b/scripts/changelog/templates/change.md.tera index 2a22592dbe55..a3d5331385ff 100644 --- a/scripts/changelog/templates/change.md.tera +++ b/scripts/changelog/templates/change.md.tera @@ -3,9 +3,9 @@ {%- if c.meta.C and c.meta.C.value >= 7 -%} {%- set prio = " ‼️ HIGH" -%} -{%- elif c.meta.C and c.meta.C.value >= 5 -%} -{%- set prio = " ❗️ Medium" -%} {%- elif c.meta.C and c.meta.C.value >= 3 -%} +{%- set prio = " ❗️ Medium" -%} +{%- elif c.meta.C and c.meta.C.value < 3 -%} {%- set prio = " Low" -%} {%- else -%} {%- set prio = "" -%} diff --git a/scripts/changelog/templates/high_priority.md.tera b/scripts/changelog/templates/high_priority.md.tera index 2bb2374b7289..83b1e5c8b838 100644 --- a/scripts/changelog/templates/high_priority.md.tera +++ b/scripts/changelog/templates/high_priority.md.tera @@ -6,7 +6,7 @@ {%- if p >= 7 -%} {%- set prio = "‼️ HIGH" -%} {%- set text = "This is a **high priority** release and you must upgrade as as soon as possible." -%} -{%- elif p >= 5 -%} +{%- elif p >= 3 -%} {%- set prio = "❗️ Medium" -%} {%- set text = "This is a medium priority release and you should upgrade in a timely manner." -%} {%- else -%} @@ -14,6 +14,7 @@ {%- set text = "This is a low priority release and you may upgrade at your convenience." -%} {%- endif %} + {%- if prio %} {{prio}}: {{text}}