Several small fixes to the templates of the release notes (#5756)

This commit is contained in:
Chevdor
2022-07-06 11:25:26 +02:00
committed by GitHub
parent 05bbba6f13
commit 7cbe7c9586
9 changed files with 19 additions and 26 deletions
@@ -12,7 +12,7 @@
{%- endif -%} {%- endif -%}
{% endif -%} {% endif -%}
{% endif -%} {% endif -%}
{% endfor %} {% endfor -%}
### Misc ### Misc
@@ -18,12 +18,5 @@
{%- set global_prio = substrate_prio -%} {%- set global_prio = substrate_prio -%}
{%- endif -%} {%- endif -%}
{# We show the result #} {#- We show the result #}
{{ m_p::high_priority(p=global_prio, changes=changes) }} {{ m_p::high_priority(p=global_prio, changes=changes) }}
<!--
- Polkadot: {{ polkadot_prio }}
- Substrate: {{ substrate_prio }}
-->
{# todo: show high prio list here #}
@@ -21,17 +21,15 @@
{% if p >= 3 %} {% if p >= 3 %}
The changes motivating this priority level are: The changes motivating this priority level are:
{% for pr in changes | sort(attribute="merged_at") -%} {% for pr in changes | sort(attribute="merged_at") -%}
{%- if pr.meta.C -%} {%- if pr.meta.C -%}
{%- if pr.meta.C.value == p %} {%- if pr.meta.C.value == p %}
- {{ m_c::change(c=pr) }} - {{ m_c::change(c=pr) }}
{%- if pr.meta.B and pr.meta.B.value == 7 %} {%- if pr.meta.B and pr.meta.B.value == 7 %} (RUNTIME)
(RUNTIME)
{% endif %} {% endif %}
{%- endif -%} {%- endif -%}
{%- endif -%} {%- endif -%}
{%- endfor %} {%- endfor -%}
{%- else -%} {%- else -%}
<!-- No relevant Priority label as been detected for p={{ p }} --> <!-- No relevant Priority label as been detected for p={{ p }} -->
{%- endif -%} {%- endif -%}
@@ -20,6 +20,7 @@
{%- 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 new 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 new **host function**.
⚠️ It is critical that you update your client before the chain switches to the new runtime. ⚠️ It is critical that you update your client before the chain switches to the new runtime.
@@ -1,4 +1,4 @@
{%- import "change.md.tera" as m_c %} {% import "change.md.tera" as m_c %}
{%- set_global db_migration_count = 0 -%} {%- set_global db_migration_count = 0 -%}
{%- for pr in changes -%} {%- for pr in changes -%}
{%- if pr.meta.B and pr.meta.B.value == 0 %} {%- if pr.meta.B and pr.meta.B.value == 0 %}
@@ -6,7 +6,7 @@
{%- elif pr.meta.E and pr.meta.E.value == 2 -%} {%- elif pr.meta.E and pr.meta.E.value == 2 -%}
{%- set_global db_migration_count = db_migration_count + 1 -%} {%- set_global db_migration_count = db_migration_count + 1 -%}
{%- endif -%} {%- endif -%}
{%- endfor -%} {%- endfor %}
## Database Migrations ## Database Migrations
@@ -6,7 +6,7 @@
{%- elif pr.meta.E and pr.meta.E.value == 1 -%} {%- elif pr.meta.E and pr.meta.E.value == 1 -%}
{%- set_global runtime_migration_count = runtime_migration_count + 1 -%} {%- set_global runtime_migration_count = runtime_migration_count + 1 -%}
{%- endif -%} {%- endif -%}
{%- endfor -%} {%- endfor %}
## Runtime Migrations ## Runtime Migrations
@@ -16,13 +16,13 @@
<!-- pkg : {{ runtime.data.pkg }} --> <!-- pkg : {{ runtime.data.pkg }} -->
``` ```
🏋️ Runtime Size: {{ runtime.data.runtimes.compressed.subwasm.size | filesizeformat }} ({{ runtime.data.runtimes.compressed.subwasm.size }} bytes) 🏋️ Runtime Size: {{ runtime.data.runtimes.compressed.subwasm.size | filesizeformat }} ({{ runtime.data.runtimes.compressed.subwasm.size }} bytes)
🔥 Core Version: {{ runtime.data.runtimes.compressed.subwasm.core_version }} 🔥 Core Version: {{ runtime.data.runtimes.compressed.subwasm.core_version }}
🗜 Compressed: {{ compressed }}: {{ comp_ratio | round(method="ceil", precision=2) }}% 🗜 Compressed: {{ compressed }}: {{ comp_ratio | round(method="ceil", precision=2) }}%
🎁 Metadata version: V{{ runtime.data.runtimes.compressed.subwasm.metadata_version }} 🎁 Metadata version: V{{ runtime.data.runtimes.compressed.subwasm.metadata_version }}
🗳️ system.setCode hash: {{ runtime.data.runtimes.compressed.subwasm.proposal_hash }} 🗳️ system.setCode hash: {{ runtime.data.runtimes.compressed.subwasm.proposal_hash }}
🗳️ authorizeUpgrade hash: {{ runtime.data.runtimes.compressed.subwasm.parachain_authorize_upgrade_hash }} 🗳️ authorizeUpgrade hash: {{ runtime.data.runtimes.compressed.subwasm.parachain_authorize_upgrade_hash }}
🗳️ Blake2-256 hash: {{ runtime.data.runtimes.compressed.subwasm.blake2_256 }} 🗳️ Blake2-256 hash: {{ runtime.data.runtimes.compressed.subwasm.blake2_256 }}
📦 IPFS: {{ runtime.data.runtimes.compressed.subwasm.ipfs_hash }} 📦 IPFS: {{ runtime.data.runtimes.compressed.subwasm.ipfs_hash }}
``` ```
{%- endmacro runtime %} {%- endmacro runtime %}
@@ -1,6 +1,8 @@
{# This include shows the list and details of the runtimes #} {# This include shows the list and details of the runtimes #}
{%- import "runtime.md.tera" as m_r -%} {%- import "runtime.md.tera" as m_r -%}
{# --- #}
## Runtimes ## Runtimes
{% set rtm = srtool[0] -%} {% set rtm = srtool[0] -%}
@@ -17,7 +17,6 @@ This release contains the changes from `{{ env.REF1 | replace(from="refs/tags/",
{# -- Manual free notes section -- #} {# -- Manual free notes section -- #}
{% include "_free_notes.md.tera" -%} {% include "_free_notes.md.tera" -%}
{# --------------------------------- #}
{# -- Important automatic section -- #} {# -- Important automatic section -- #}
{% include "global_priority.md.tera" -%} {% include "global_priority.md.tera" -%}