This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changelog: update template for new label behavior (E3/E4) (#6804)
* update changelog template for new label behavior (E3/E4) This distinguishes E3 and E4 labels in the changelog output * Separate E3/E4 notices in changelog * fixup
- Loading branch information
Showing
1 changed file
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,42 @@ | ||
{%- 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.E4 -%} | ||
{%- if pr.meta.E and pr.meta.E.E3 -%} | ||
{%- set_global host_fn_count = host_fn_count + 1 -%} | ||
- {{ m_c::change(c=pr) }} | ||
{% endif -%} | ||
{% 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 %} | ||
{% if host_fn_count == 0 %} | ||
ℹ️ This release does not contain any new host functions. | ||
{% elif host_fn_count == 1 -%} | ||
{# ---- #} | ||
⚠️ 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. | ||
ℹ️ The runtimes in this release contain one new **host function**. | ||
{%- else -%} | ||
⚠️ The runtimes in this release contain {{ host_fn_count }} new **host function{{ host_fn_count | pluralize }}**. | ||
|
||
⚠️ It is critical that you update your client before the chain switches to the new runtime. | ||
ℹ️ The runtimes in this release contain {{ host_fn_count }} new **host function{{ host_fn_count | pluralize }}**. | ||
{%- endif %} |