diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 0000000..2aff072 --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,25 @@ +[changelog] +body = """ +## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + +{% for group, commits in commits | group_by(attribute="group") %} +### {{ group | striptags | trim | upper_first }} +{% for commit in commits %} +{%- if commit.scope -%} +- *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{%- if commit.links %} ({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%}){% endif %} +{% else -%} +- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }} +{% endif -%} +{% endfor -%} +{% endfor %} +""" +commit_parsers = [ + { message = "^feat", group = "New featues" }, + { message = "^changed", group = "Changes" }, + { message = "^deprecated", group = "Deprecated" }, + { message = "^fix", group = "Bug fixes" }, + { message = "^security", group = "Security" }, + { message = "^docs", group = "Documentation" }, + { message = "^test", group = "Tests" }, + { message = "^.*", group = "Other" }, +]