mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-09 17:37:26 +00:00
f17ea2cdd0
* 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
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
{%- import "change.md.tera" as m_c -%}
|
|
|
|
{%- set_global misc_count = 0 -%}
|
|
{#- First pass to count #}
|
|
{%- for pr in changes -%}
|
|
{%- 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 %}
|
|
{%- set_global misc_count = misc_count + 1 -%}
|
|
{%- endif -%}
|
|
{% endif -%}
|
|
{% endif -%}
|
|
{% endfor -%}
|
|
|
|
<!-- Found {{ misc_count }} misc PRs -->
|
|
{%- if misc_count > 0 %}
|
|
### Misc
|
|
|
|
{% if misc_count > 10 %}
|
|
There are other misc. changes. You can expand the list below to view them all.
|
|
<details><summary>Other misc. changes</summary>
|
|
{% endif -%}
|
|
|
|
{#- The changes are sorted by merge date #}
|
|
{%- for pr in changes | sort(attribute="merged_at") %}
|
|
{%- if pr.meta.B and not pr.title is containing("ompanion") %}
|
|
{%- if pr.meta.B.value == 0 %}
|
|
{#- We skip silent ones -#}
|
|
{%- else -%}
|
|
{%- if pr.meta.T and pr.meta.T.value > 2 %}
|
|
- {{ m_c::change(c=pr) }}
|
|
{%- endif -%}
|
|
{% endif -%}
|
|
{% endif -%}
|
|
{% endfor %}
|
|
|
|
{% if misc_count > 10 %}
|
|
</details>
|
|
{% endif -%}
|
|
{% endif -%}
|