mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07: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>
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
{# This macro shows ONE change #}
|
|
{%- macro change(c, cml="[C]", dot="[P]", sub="[S]") -%}
|
|
|
|
{%- if c.meta.C and c.meta.C.agg.max >= 7 -%}
|
|
{%- set prio = " ‼️ HIGH" -%}
|
|
{%- elif c.meta.C and c.meta.C.agg.max >= 3 -%}
|
|
{%- set prio = " ❗️ Medium" -%}
|
|
{%- elif c.meta.C and c.meta.C.agg.max < 3 -%}
|
|
{%- set prio = " Low" -%}
|
|
{%- else -%}
|
|
{%- set prio = "" -%}
|
|
{%- endif -%}
|
|
|
|
{%- set audit = "" -%}
|
|
|
|
{%- if c.meta.D and c.meta.D.D1 -%}
|
|
{%- set audit = "✅ audited " -%}
|
|
{%- elif c.meta.D and c.meta.D.D2 -%}
|
|
{%- set audit = "✅ trivial " -%}
|
|
{%- elif c.meta.D and c.meta.D.D3 -%}
|
|
{%- set audit = "✅ trivial " -%}
|
|
{%- elif c.meta.D and c.meta.D.D5 -%}
|
|
{%- set audit = "⏳ pending non-critical audit " -%}
|
|
{%- else -%}
|
|
{%- set audit = "" -%}
|
|
{%- endif -%}
|
|
|
|
{%- if c.html_url is containing("polkadot") -%}
|
|
{%- set repo = dot -%}
|
|
{%- elif c.html_url is containing("substrate") -%}
|
|
{%- set repo = sub -%}
|
|
{%- else -%}
|
|
{%- set repo = " " -%}
|
|
{%- endif -%}
|
|
|
|
{%- if c.meta.T and c.meta.T.T6 -%}
|
|
{%- set xcm = " [✉️ XCM]" -%}
|
|
{%- else -%}
|
|
{%- set xcm = "" -%}
|
|
{%- endif -%}
|
|
|
|
{{- repo }} {{ audit }}[`#{{c.number}}`]({{c.html_url}}) {{- prio }} - {{ c.title | capitalize | truncate(length=120, end="…") }}{{xcm }}
|
|
{%- endmacro change -%}
|