mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 16:38:01 +00:00
e543545f03
* Format runtime version ref #787 * Remove the counter in the misc changes * Add pre-release information * Save context as artifact * Rococo naming and minor fixes * WIP * Show the list of high prio issues * Minor fixes * Fix workflow title * Attempt to fix Element rendering issue * Code block fix
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
{%- import "change.md.tera" as m_c -%}
|
|
|
|
{# This macro convert a priority level into readable output #}
|
|
{%- macro high_priority(p, changes) -%}
|
|
|
|
{%- 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 -%}
|
|
{%- set prio = "❗️ Medium" -%}
|
|
{%- set text = "This is a medium priority release and you should upgrade in a timely manner." -%}
|
|
{%- elif p >= 3 -%}
|
|
{%- set prio = "Low" -%}
|
|
{%- set text = "This is a low priority release and you may upgrade at your convenience." -%}
|
|
{%- endif %}
|
|
|
|
{%- if prio %}
|
|
{{prio}}: {{text}}
|
|
{%- else -%}
|
|
<!-- No relevant Priority label as been detected -->
|
|
{% endif %}
|
|
|
|
The changes motivating this priority level are:
|
|
|
|
{% for pr in changes | sort(attribute="merged_at") -%}
|
|
{%- if pr.meta.C -%}
|
|
{%- if pr.meta.C.value == p %}
|
|
- {{ m_c::change(c=pr) }}
|
|
{%- if pr.meta.B and pr.meta.B.value == 7 %}
|
|
(RUNTIME)
|
|
{% endif %}
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
{%- endfor %}
|
|
|
|
|
|
{%- endmacro priority -%}
|