From 2c206d6b22a107ebdb0e68495829ec6a074062bc Mon Sep 17 00:00:00 2001 From: Yoshihiro Sugi Date: Thu, 19 Sep 2024 22:52:53 +0900 Subject: [PATCH] Update release-plz.toml (#235) --- release-plz.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/release-plz.toml b/release-plz.toml index 17cbcfb2..2a6c4bbf 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" },