mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-21 07:31:03 +00:00
Fix release notes templates (#6697)
* WIP * Fix templates - fix conditions to fetch misc PRs - render the misc section only if required - add html comment to help debugging - add a new API section to T2 labels
This commit is contained in:
@@ -16,6 +16,8 @@ gem 'optparse', '~> 0.1.1'
|
|||||||
|
|
||||||
gem 'logger', '~> 1.4'
|
gem 'logger', '~> 1.4'
|
||||||
|
|
||||||
|
gem 'changelogerator', '0.9.1'
|
||||||
|
|
||||||
gem 'test-unit', group: :dev
|
gem 'test-unit', group: :dev
|
||||||
|
|
||||||
gem 'rubocop', group: :dev, require: false
|
gem 'rubocop', group: :dev, require: false
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ GEM
|
|||||||
addressable (2.8.0)
|
addressable (2.8.0)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
ast (2.4.2)
|
ast (2.4.2)
|
||||||
|
changelogerator (0.9.1)
|
||||||
|
git_diff_parser (~> 3)
|
||||||
|
octokit (~> 4)
|
||||||
faraday (1.8.0)
|
faraday (1.8.0)
|
||||||
faraday-em_http (~> 1.0)
|
faraday-em_http (~> 1.0)
|
||||||
faraday-em_synchrony (~> 1.0)
|
faraday-em_synchrony (~> 1.0)
|
||||||
@@ -64,8 +67,10 @@ GEM
|
|||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
x86_64-darwin-20
|
x86_64-darwin-20
|
||||||
|
x86_64-darwin-22
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
changelogerator (= 0.9.1)
|
||||||
git_diff_parser (~> 3)
|
git_diff_parser (~> 3)
|
||||||
logger (~> 1.4)
|
logger (~> 1.4)
|
||||||
octokit (~> 4)
|
octokit (~> 4)
|
||||||
@@ -76,4 +81,4 @@ DEPENDENCIES
|
|||||||
toml (~> 0.3.0)
|
toml (~> 0.3.0)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.2.22
|
2.4.6
|
||||||
|
|||||||
@@ -33,5 +33,11 @@
|
|||||||
{%- set repo = " " -%}
|
{%- set repo = " " -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if c.meta.T and c.meta.T.value == 6 -%}
|
||||||
|
{%- set xcm = " [✉️ XCM]" -%}
|
||||||
|
{%- else -%}
|
||||||
|
{%- set xcm = "" -%}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
{{- repo }} {{ audit }}[`#{{c.number}}`]({{c.html_url}}) {{- prio }} - {{ c.title | capitalize | truncate(length=120, end="…") }}{{xcm }}
|
{{- repo }} {{ audit }}[`#{{c.number}}`]({{c.html_url}}) {{- prio }} - {{ c.title | capitalize | truncate(length=120, end="…") }}{{xcm }}
|
||||||
{%- endmacro change -%}
|
{%- endmacro change -%}
|
||||||
|
|||||||
@@ -10,4 +10,6 @@
|
|||||||
|
|
||||||
{% include "changes_runtime.md.tera" %}
|
{% include "changes_runtime.md.tera" %}
|
||||||
|
|
||||||
|
{% include "changes_api.md.tera" %}
|
||||||
|
|
||||||
{% include "changes_misc.md.tera" %}
|
{% include "changes_misc.md.tera" %}
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{% import "change.md.tera" as m_c -%}
|
||||||
|
### API
|
||||||
|
|
||||||
|
{#- The changes are sorted by merge date #}
|
||||||
|
{%- for pr in changes | sort(attribute="merged_at") %}
|
||||||
|
|
||||||
|
{%- if pr.meta.B %}
|
||||||
|
{%- if pr.meta.B.value == 0 %}
|
||||||
|
{#- We skip silent ones -#}
|
||||||
|
{%- else -%}
|
||||||
|
|
||||||
|
{%- if pr.meta.T and pr.meta.T.value == 2 and not pr.title is containing("ompanion") %}
|
||||||
|
- {{ m_c::change(c=pr) }}
|
||||||
|
{%- else %}
|
||||||
|
<!-- EXCLUDED PR#{{pr.number}} - {{pr.html_url}} -->
|
||||||
|
{%- endif -%}
|
||||||
|
{% endif -%}
|
||||||
|
{% endif -%}
|
||||||
|
{% endfor %}
|
||||||
@@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
{%- if pr.meta.T and pr.meta.T.value == 0 and not pr.title is containing("ompanion") %}
|
{%- if pr.meta.T and pr.meta.T.value == 0 and not pr.title is containing("ompanion") %}
|
||||||
- {{ m_c::change(c=pr) }}
|
- {{ m_c::change(c=pr) }}
|
||||||
|
{%- else %}
|
||||||
|
<!-- EXCLUDED PR#{{pr.number}} - {{pr.html_url}} -->
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|||||||
@@ -7,13 +7,15 @@
|
|||||||
{%- if pr.meta.B.value == 0 -%}
|
{%- if pr.meta.B.value == 0 -%}
|
||||||
{#- We skip silent ones -#}
|
{#- We skip silent ones -#}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- if pr.meta.T and pr.meta.T.value == 0 %}
|
{%- if pr.meta.T and pr.meta.T.value > 2 %}
|
||||||
{%- set_global misc_count = misc_count + 1 -%}
|
{%- set_global misc_count = misc_count + 1 -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
|
||||||
|
<!-- Found {{ misc_count }} misc PRs -->
|
||||||
|
{%- if misc_count > 0 %}
|
||||||
### Misc
|
### Misc
|
||||||
|
|
||||||
{% if misc_count > 10 %}
|
{% if misc_count > 10 %}
|
||||||
@@ -27,7 +29,7 @@ There are other misc. changes. You can expand the list below to view them all.
|
|||||||
{%- if pr.meta.B.value == 0 %}
|
{%- if pr.meta.B.value == 0 %}
|
||||||
{#- We skip silent ones -#}
|
{#- We skip silent ones -#}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- if pr.meta.T and pr.meta.T.value == 0 %}
|
{%- if pr.meta.T and pr.meta.T.value > 2 %}
|
||||||
- {{ m_c::change(c=pr) }}
|
- {{ m_c::change(c=pr) }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
@@ -37,3 +39,4 @@ There are other misc. changes. You can expand the list below to view them all.
|
|||||||
{% if misc_count > 10 %}
|
{% if misc_count > 10 %}
|
||||||
</details>
|
</details>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
{% endif -%}
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
{%- if pr.meta.T and pr.meta.T.value == 1 and not pr.title is containing("ompanion") %}
|
{%- if pr.meta.T and pr.meta.T.value == 1 and not pr.title is containing("ompanion") %}
|
||||||
- {{ m_c::change(c=pr) }}
|
- {{ m_c::change(c=pr) }}
|
||||||
|
{%- else %}
|
||||||
|
<!-- EXCLUDED PR#{{pr.number}} - {{pr.html_url}} -->
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user