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 <>
This commit is contained in:
Chevdor
2023-05-08 12:18:25 +02:00
committed by GitHub
parent 3d32afa608
commit 4809bb0305
3 changed files with 20 additions and 5 deletions
@@ -0,0 +1,12 @@
{%- import "change.md.tera" as m_c -%}
{% 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 -%}
- {{ m_c::change(c=pr) }}
{% endif -%}
{% endif -%}
{%- endfor -%}
@@ -1,4 +1,5 @@
{%- import "change.md.tera" as m_c -%} {%- import "change.md.tera" as m_c -%}
{%- set_global host_fn_count = 0 -%} {%- set_global host_fn_count = 0 -%}
{%- set_global upgrade_first = 0 -%} {%- set_global upgrade_first = 0 -%}
@@ -32,10 +33,12 @@
## Host functions ## Host functions
{% if host_fn_count == 0 %} {% if host_fn_count == 0 %}
️ This release does not contain any new host functions. ️ This release does not contain any change related to host functions.
{% elif host_fn_count == 1 -%} {% elif host_fn_count == 1 -%}
{# ---- #} {# ---- #}
️ The runtimes in this release contain one new **host function**. ️ The runtimes in this release contain one change related to **host function**s:
{% include "host_functions-list.md.tera" -%}
{%- else -%} {%- else -%}
️ The runtimes in this release contain {{ host_fn_count }} new **host function{{ host_fn_count | pluralize }}**. ️ The runtimes in this release contain {{ host_fn_count }} changes related to **host function**s:
{% include "host_functions-list.md.tera" -%}
{%- endif %} {%- endif %}