Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/ci/changelog/templates/changes_misc.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{%- endif -%}
{% endif -%}
{% endif -%}
{% endfor %}
{% endfor -%}

### Misc

Expand Down
9 changes: 1 addition & 8 deletions scripts/ci/changelog/templates/global_priority.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,5 @@
{%- set global_prio = substrate_prio -%}
{%- endif -%}

{# We show the result #}
{#- We show the result #}
{{ m_p::high_priority(p=global_prio, changes=changes) }}

<!--
- Polkadot: {{ polkadot_prio }}
- Substrate: {{ substrate_prio }}
-->

{# todo: show high prio list here #}
6 changes: 2 additions & 4 deletions scripts/ci/changelog/templates/high_priority.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@

{% if p >= 3 %}
The changes motivating this priority level are:

{% for pr in changes | sort(attribute="merged_at") -%}
{%- if pr.meta.C -%}
{%- if pr.meta.C.value == p %}
- {{ m_c::change(c=pr) }}
{%- if pr.meta.B and pr.meta.B.value == 7 %}
(RUNTIME)
{%- if pr.meta.B and pr.meta.B.value == 7 %} (RUNTIME)
{% endif %}
{%- endif -%}
{%- endif -%}
{%- endfor %}
{%- endfor -%}
{%- else -%}
<!-- No relevant Priority label as been detected for p={{ p }} -->
{%- endif -%}
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/changelog/templates/host_functions.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
{%- 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.
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/changelog/templates/migrations-db.md.tera
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{%- import "change.md.tera" as m_c %}
{% import "change.md.tera" as m_c %}
{%- set_global db_migration_count = 0 -%}
{%- for pr in changes -%}
{%- if pr.meta.B and pr.meta.B.value == 0 %}
{#- We skip silent ones -#}
{%- elif pr.meta.E and pr.meta.E.value == 2 -%}
{%- set_global db_migration_count = db_migration_count + 1 -%}
{%- endif -%}
{%- endfor -%}
{%- endfor %}

## Database Migrations

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{%- elif pr.meta.E and pr.meta.E.value == 1 -%}
{%- set_global runtime_migration_count = runtime_migration_count + 1 -%}
{%- endif -%}
{%- endfor -%}
{%- endfor %}

## Runtime Migrations

Expand Down
18 changes: 9 additions & 9 deletions scripts/ci/changelog/templates/runtime.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
<!-- pkg : {{ runtime.data.pkg }} -->

```
🏋️ 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 }}
🗜 Compressed: {{ compressed }}: {{ comp_ratio | round(method="ceil", precision=2) }}%
🎁 Metadata version: V{{ runtime.data.runtimes.compressed.subwasm.metadata_version }}
🗳️ system.setCode hash: {{ runtime.data.runtimes.compressed.subwasm.proposal_hash }}
🗳️ authorizeUpgrade hash: {{ runtime.data.runtimes.compressed.subwasm.parachain_authorize_upgrade_hash }}
🗳️ Blake2-256 hash: {{ runtime.data.runtimes.compressed.subwasm.blake2_256 }}
📦 IPFS: {{ runtime.data.runtimes.compressed.subwasm.ipfs_hash }}
🏋️ 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 }}
🗜 Compressed: {{ compressed }}: {{ comp_ratio | round(method="ceil", precision=2) }}%
🎁 Metadata version: V{{ runtime.data.runtimes.compressed.subwasm.metadata_version }}
🗳️ system.setCode hash: {{ runtime.data.runtimes.compressed.subwasm.proposal_hash }}
🗳️ authorizeUpgrade hash: {{ runtime.data.runtimes.compressed.subwasm.parachain_authorize_upgrade_hash }}
🗳️ Blake2-256 hash: {{ runtime.data.runtimes.compressed.subwasm.blake2_256 }}
📦 IPFS: {{ runtime.data.runtimes.compressed.subwasm.ipfs_hash }}
```
{%- endmacro runtime %}
{%- endmacro runtime %}
2 changes: 2 additions & 0 deletions scripts/ci/changelog/templates/runtimes.md.tera
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{# This include shows the list and details of the runtimes #}
{%- import "runtime.md.tera" as m_r -%}

{# --- #}

## Runtimes

{% set rtm = srtool[0] -%}
Expand Down
1 change: 0 additions & 1 deletion scripts/ci/changelog/templates/template.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ This release contains the changes from `{{ env.REF1 | replace(from="refs/tags/",

{# -- Manual free notes section -- #}
{% include "_free_notes.md.tera" -%}
{# --------------------------------- #}

{# -- Important automatic section -- #}
{% include "global_priority.md.tera" -%}
Expand Down