From 893af88a2923d9221cf0dfe751a727368f564afd Mon Sep 17 00:00:00 2001 From: Xenira <1288524+Xenira@users.noreply.github.com> Date: Sun, 2 Mar 2025 13:04:48 +0100 Subject: [PATCH] ci(release-plz): move breaking changes to section on top of changelog --- .release-plz.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.release-plz.toml b/.release-plz.toml index 24e953a49a..0044cecb9f 100644 --- a/.release-plz.toml +++ b/.release-plz.toml @@ -32,7 +32,15 @@ body = """ {% endif -%} {% endmacro %} ## [{{ version | trim_start_matches(pat="v") }}]{%- if release_link -%}({{ release_link }}){% endif %} - {{ timestamp | date(format="%Y-%m-%d") -}} -{%- for group, commits in commits | group_by(attribute="group") %} +{%- set breaking_commits = commits | filter(attribute="breaking", value=true) %} +{%- if breaking_commits | length > 0 %} + + ### BREAKING CHANGES + {% for commit in breaking_commits -%} + {{- self::commit_message(commit=commit) -}} + {% endfor -%} +{% endif %} +{%- for group, commits in commits | filter(attribute="breaking", value=false) | group_by(attribute="group") %} ### {{ group | upper_first -}} {% for commit in commits