Skip to content

Commit

Permalink
Fix priority thresholds (paritytech#1203) (paritytech#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor authored Apr 25, 2022
1 parent 7cf357e commit 2b98b34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/ci/changelog/templates/change.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "" -%}
Expand Down
6 changes: 4 additions & 2 deletions scripts/ci/changelog/templates/high_priority.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@
{%- if p >= 7 or host_fn_count > 0 -%}
{%- 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." -%}
{%- elif p >= 3 -%}
{%- else -%}
{%- set prio = "Low" -%}
{%- 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}}
{%- else -%}
Expand Down

0 comments on commit 2b98b34

Please sign in to comment.