From 6a31b4687e2d17c0e6a14918804f76938e7528c5 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 4 Aug 2024 08:02:40 +0100 Subject: [PATCH] build: release-plz single changelog and tag --- release-plz.toml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 release-plz.toml diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 00000000..ce6cb7c1 --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,36 @@ +[workspace] +# Disable git releases for all packages by default +git_release_enable = false + +# Disable git tags for all packages by default +git_tag_enable = false + +# set the path of all the crates to the changelog to the root of the repository +changelog_path = "./CHANGELOG.md" + +[[package]] +name = "git-next" +# (Optional) Customize the git tag name to remove the `my_main_package` prefix. +git_tag_name = "v{{ version }}" + +# Enable git tags for this package +git_tag_enable = true + +# Enable git releases for this package +git_release_enable = true + +[changelog] +body = """ + +## `{{ package }}` - [{{ 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 }}{%- 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 -%} +"""