diff --git a/release-plz.toml b/release-plz.toml index 17cbcfb..2a6c4bb 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -47,6 +47,27 @@ git_tag_enable = true changelog_update = true [changelog] +body = """ +## [{{ 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") %} +### {{ group | upper_first }} + {% for commit in commits %} + {%- if commit.scope -%} + - *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}\ + {{ commit.message }} by @{{ commit.author.name }}\ + {%- if commit.links %} \ + ({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%})\ + {% endif %} + {% else -%} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }} by @{{ commit.author.name }} + {% endif -%} + {% endfor -%} +{% endfor %} +""" commit_parsers = [ { message = "^feat", group = "added" }, { message = "^changed", group = "changed" },