From fad380d4233e37bc21340077c0f852a4761a8dbc Mon Sep 17 00:00:00 2001 From: Daniel Widgren Date: Tue, 31 Mar 2026 13:09:26 +0200 Subject: [PATCH] chore: add release workflow and cliff.toml --- .github/workflows/release.yml | 11 ++++++++++ cliff.toml | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 cliff.toml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6797f20 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,11 @@ +name: Release + +on: + push: + branches: [main] + +jobs: + release: + uses: Taure/erlang-ci/.github/workflows/release.yml@v2 + permissions: + contents: write diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..515d029 --- /dev/null +++ b/cliff.toml @@ -0,0 +1,38 @@ +[changelog] +header = """ +# Changelog\n +All notable changes to this project will be documented in this file.\n +""" +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | striptags | trim | upper_first }} + {% for commit in commits %} + - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ + {{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +trim = true + +[git] +conventional_commits = true +filter_unconventional = true +split_commits = false +commit_parsers = [ + { message = "^feat", group = "Features" }, + { message = "^fix", group = "Bug Fixes" }, + { message = "^docs", group = "Documentation" }, + { message = "^refactor", group = "Refactor" }, + { message = "^test", group = "Testing" }, + { message = "^chore\\(release\\)", skip = true }, + { message = "^chore", group = "Miscellaneous" }, + { message = "^ci", skip = true }, +] +protect_breaking_commits = false +tag_pattern = "v[0-9].*" +sort_commits = "oldest"