Fix priority thresholds (#5375)

Fix for the priorities shown in the release notes
This commit is contained in:
Chevdor
2022-04-22 15:25:49 +02:00
committed by GitHub
parent a5742b9ec1
commit 85bf52342f
2 changed files with 4 additions and 3 deletions
@@ -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 = "" -%}
@@ -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 %}
<!-- detected max prio is: {{p}} -->
{%- if prio %}
{{prio}}: {{text}}