Files
pezkuwi-subxt/polkadot/scripts/changelog/templates/global_priority.md.tera
T
Chevdor 168dc6e5cd Fix changelog (#5155)
* Pass git ref explicitely

* Include a db migration section to the changelog
2022-03-22 09:55:21 +01:00

30 lines
729 B
Plaintext

{% import "high_priority.md.tera" as m_p -%}
## Upgrade Priority
{%- set polkadot_prio = 0 -%}
{%- set substrate_prio = 0 -%}
{# We fetch the various priorities #}
{%- if polkadot.meta.C -%}
{%- set polkadot_prio = polkadot.meta.C.max -%}
{%- endif -%}
{%- if substrate.meta.C -%}
{%- set substrate_prio = substrate.meta.C.max -%}
{%- endif -%}
{# We compute the global priority #}
{%- set global_prio = polkadot_prio -%}
{%- if substrate_prio > global_prio -%}
{%- set global_prio = substrate_prio -%}
{%- endif -%}
{# We show the result #}
{{ m_p::high_priority(p=global_prio, changes=changes) }}
<!--
- Polkadot: {{ polkadot_prio }}
- Substrate: {{ substrate_prio }}
-->
{# todo: show high prio list here #}