Skip to content

Commit e176cbd

Browse files
authored
ci(release-plz): move breaking changes to section on top of changelog (#393)
1 parent a77adcd commit e176cbd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.release-plz.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ body = """
3232
{% endif -%}
3333
{% endmacro %}
3434
## [{{ version | trim_start_matches(pat="v") }}]{%- if release_link -%}({{ release_link }}){% endif %} - {{ timestamp | date(format="%Y-%m-%d") -}}
35-
{%- for group, commits in commits | group_by(attribute="group") %}
35+
{%- set breaking_commits = commits | filter(attribute="breaking", value=true) %}
36+
{%- if breaking_commits | length > 0 %}
37+
38+
### BREAKING CHANGES
39+
{% for commit in breaking_commits -%}
40+
{{- self::commit_message(commit=commit) -}}
41+
{% endfor -%}
42+
{% endif %}
43+
{%- for group, commits in commits | filter(attribute="breaking", value=false) | group_by(attribute="group") %}
3644
3745
### {{ group | upper_first -}}
3846
{% for commit in commits

0 commit comments

Comments
 (0)