mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 18:11:03 +00:00
0269532fa8
* Add templates * Add folder for local storage of the digests * Add first draft of the changelog scripts * Enable Audits in the change template * Fixes for Polkadot * Fix templating issue in case there is no high prio change * Fix Ruby setup * Remove shell * Fix chain names * Fix ENV * Fix how to get runtime * Fix runtime_dir * Fix context location * Pin changelogerator to a specific version
30 lines
728 B
Plaintext
30 lines
728 B
Plaintext
{% import "high_priority.md.tera" as m_p -%}
|
|
## Global 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 #}
|