mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
9a5e01a3b4
* update templates to upcoming context.json format * fix merging error * more fixes * fix templates * fix * print "changelogerator --version" * print changelogerator version as debug * remove excluded debug info * WIP * Switch to changelogerator v0.10.1 * Update bundle deps * fix --------- Co-authored-by: Wilfried Kopp <wilfried@parity.io>
39 lines
1.1 KiB
Plaintext
39 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 >= 3 -%}
|
|
{%- set prio = "❗️ Medium" -%}
|
|
{%- set text = "This is a medium priority release and you should upgrade in a timely manner." -%}
|
|
{%- 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}}
|
|
|
|
{% if p >= 3 %}
|
|
The changes motivating this priority level are:
|
|
{% for pr in changes | sort(attribute="merged_at") -%}
|
|
{%- if pr.meta.C -%}
|
|
{%- if pr.meta.C.agg.max >= p %}
|
|
- {{ m_c::change(c=pr) }}
|
|
{%- if pr.meta.T and pr.meta.T.T1 %} (RUNTIME)
|
|
{% endif %}
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
{%- else -%}
|
|
<!-- No relevant Priority label as been detected for p={{ p }} -->
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
|
|
{%- endmacro priority -%}
|