Files
pezkuwi-subxt/polkadot/scripts/ci/changelog/templates/host_functions.md.tera
T
Chevdor 4809bb0305 Add a new template to show the list of host functions (#7158)
* Add a new template to show the list of host functions

* Fix release notes template for host functions

---------

Co-authored-by: parity-processbot <>
2023-05-08 10:18:25 +00:00

45 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{%- import "change.md.tera" as m_c -%}
{%- set_global host_fn_count = 0 -%}
{%- set_global upgrade_first = 0 -%}
{% for pr in changes | sort(attribute="merged_at") -%}
{%- if pr.meta.B and pr.meta.B.B0 -%}
{#- We skip silent ones -#}
{%- else -%}
{%- if pr.meta.E and pr.meta.E.E3 -%}
{%- set_global host_fn_count = host_fn_count + 1 -%}
- {{ m_c::change(c=pr) }}
{% endif -%}
{%- if pr.meta.E and pr.meta.E.E4 -%}
{%- set_global upgrade_first = upgrade_first + 1 -%}
- {{ m_c::change(c=pr) }}
{% endif -%}
{% endif -%}
{%- endfor -%}
<!-- {{ upgrade_first }} changes require node upgrade -->
{%- if upgrade_first != 0 %}
## Node upgrade required
⚠️ There is a runtime change that will require nodes to be upgraded BEFORE the runtime upgrade.
⚠️ It is critical that you update your client before the chain switches to the new runtime.
{%- endif %}
<!-- {{ host_fn_count }} host functions were detected -->
## Host functions
{% if host_fn_count == 0 %}
️ This release does not contain any change related to host functions.
{% elif host_fn_count == 1 -%}
{# ---- #}
️ The runtimes in this release contain one change related to **host function**s:
{% include "host_functions-list.md.tera" -%}
{%- else -%}
️ The runtimes in this release contain {{ host_fn_count }} changes related to **host function**s:
{% include "host_functions-list.md.tera" -%}
{%- endif %}