mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
a1771657f4
* changelog: fix runtime migration listing * changelog: fix db migration listing
30 lines
956 B
Plaintext
30 lines
956 B
Plaintext
{%- import "change.md.tera" as m_c %}
|
||
{%- set_global runtime_migration_count = 0 -%}
|
||
{%- for pr in changes -%}
|
||
{%- if pr.meta.B and pr.meta.B.B0 %}
|
||
{#- We skip silent ones -#}
|
||
{%- elif pr.meta.E and pr.meta.E.E0 -%}
|
||
{%- set_global runtime_migration_count = runtime_migration_count + 1 -%}
|
||
{%- endif -%}
|
||
{%- endfor %}
|
||
|
||
## Runtime Migrations
|
||
|
||
Runtime migrations are operations running once during a runtime upgrade.
|
||
|
||
{% if runtime_migration_count == 0 -%}
|
||
ℹ️ There is no runtime migration in this release.
|
||
{%- elif runtime_migration_count == 1 -%}
|
||
⚠️ There is one runtime migration in this release:
|
||
{%- else -%}
|
||
⚠️ There are {{ runtime_migration_count }} runtime migrations in this release:
|
||
{%- endif %}
|
||
{% for pr in changes | sort(attribute="merged_at") -%}
|
||
|
||
{%- if pr.meta.B and pr.meta.B.B0 %}
|
||
{#- We skip silent ones -#}
|
||
{%- elif pr.meta.E and pr.meta.E.E0 -%}
|
||
- {{ m_c::change(c=pr) }}
|
||
{% endif -%}
|
||
{% endfor -%}
|