{# This macro shows ONE change #} {%- macro change(c, cml="[C]", dot="[P]", sub="[S]") -%} {%- if c.meta.C and c.meta.C.agg.max >= 5 -%} {%- 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("cumulus") -%} {%- set repo = cml -%} {%- 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=60, end="…") }}{{xcm }} {%- endmacro change %}