Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update changelog templates to use new labels (#6585)
Browse files Browse the repository at this point in the history
* Update changelog template to use new T labels

* update readme

* changelog gen: remove T6
  • Loading branch information
coderobe authored Jan 19, 2023
1 parent d6fdcac commit a8b5525
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
7 changes: 3 additions & 4 deletions scripts/ci/changelog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ Currently, the considered labels are:
- E4 => new host function
- E2 => database migration
- B0 => silent, not showing up
- B1-releasenotes (misc unless other labels)
- B5-client (client changes)
- B7-runtimenoteworthy (runtime changes)
- T6-XCM
- B1 => noteworthy
- T0 => node
- T1 => runtime

Note that labels with the same letter are mutually exclusive.
A PR should not have both `B0` and `B5`, or both `C1` and `C9`. In case of conflicts, the template will
Expand Down
5 changes: 0 additions & 5 deletions scripts/ci/changelog/templates/change.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,5 @@
{%- set repo = " " -%}
{%- 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 }}
{%- endmacro change -%}
2 changes: 1 addition & 1 deletion scripts/ci/changelog/templates/changes_client.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{#- We skip silent ones -#}
{%- else -%}

{%- if pr.meta.B.value == 5 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) }}
{%- endif -%}
{% endif -%}
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/changelog/templates/changes_misc.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{%- if pr.meta.B.value == 0 -%}
{#- We skip silent ones -#}
{%- else -%}
{%- if pr.meta.B and pr.meta.B.value != 5 and pr.meta.B.value != 7 or pr.meta.C or not pr.meta.B %}
{%- if pr.meta.T and pr.meta.T.value == 0 %}
{%- set_global misc_count = misc_count + 1 -%}
{%- endif -%}
{% endif -%}
Expand All @@ -27,7 +27,7 @@ There are other misc. changes. You can expand the list below to view them all.
{%- if pr.meta.B.value == 0 %}
{#- We skip silent ones -#}
{%- else -%}
{%- if pr.meta.B and pr.meta.B.value != 5 and pr.meta.B.value != 7 or pr.meta.C or not pr.meta.B %}
{%- if pr.meta.T and pr.meta.T.value == 0 %}
- {{ m_c::change(c=pr) }}
{%- endif -%}
{% endif -%}
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/changelog/templates/changes_runtime.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{#- We skip silent ones -#}
{%- else -%}

{%- if pr.meta.B.value == 7 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) }}
{%- endif -%}
{%- endif -%}
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/changelog/templates/high_priority.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The changes motivating this priority level are:
{%- 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.T and pr.meta.T.value == 1 %} (RUNTIME)
{% endif %}
{%- endif -%}
{%- endif -%}
Expand Down

0 comments on commit a8b5525

Please sign in to comment.