From c3f5be60ed36ef322a17899e9abf198e0d848833 Mon Sep 17 00:00:00 2001 From: illyum Date: Wed, 9 Apr 2025 13:25:14 -0600 Subject: [PATCH] chore: add changelog gen settings --- cliff.toml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 cliff.toml diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..1f04291 --- /dev/null +++ b/cliff.toml @@ -0,0 +1,36 @@ +# cliff.toml + +[changelog] +title = "Changelog" +description = "All notable changes to this project will be documented in this file." +repository_url = "http://localhost:3001/illyum/sbt-stash" +template = """ +# {{version}} - {{date}} +{% for group, commits in commits | group_by(attribute="group") %} +### {{group | upper_first}} +{% for commit in commits %} +- {{ commit.message | upper_first }} ({% if commit.breaking %}! {% endif %}{{ commit.hash }}) +{% endfor %} +{% endfor %} +""" + +[git] +commit_parsers = [ + { message = "^\\(Chore\\)", group = "Chore" }, + { message = "^\\(BugFix\\)", group = "Bug Fixes" }, + { message = "^\\(Feat\\)", group = "Features" }, + { message = "^\\(Docs\\)", group = "Documentation" }, + { message = "^\\(Refactor\\)", group = "Refactor" }, + { message = "^\\(Test\\)", group = "Tests" }, + { message = "^\\(Style\\)", group = "Styling" }, + { message = "^\\(Perf\\)", group = "Performance" }, +] + +[git.tag] +pattern = "^v[0-9]+" + +[git.commit] +conventional = false + +[git.filters] +exclude_merge_commits = true