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