commit e223f447739e0c4cf75f3ca9d55f67def65c42a8 from: mtmn date: Thu May 7 17:27:57 2026 UTC ci: add git-cliff config commit - d44a2393f26e695f4c62f27808f6f1e5d7c85586 commit + e223f447739e0c4cf75f3ca9d55f67def65c42a8 blob - 19892e4da55530c2b9e448a5f1942ae9efcae64e blob + e901168a76ec518f8ebca61c9d1c481ccb74ce60 --- .gitignore +++ .gitignore @@ -1 +1,2 @@ -.zig-cache +/.zig-cache +/zig-out blob - /dev/null blob + 74d663ca8b209025a1dfd4ba5870e4335716bca3 (mode 644) --- /dev/null +++ cliff.toml @@ -0,0 +1,45 @@ +[changelog] +header = "# Changelog\n\n" +body = """ +{% if version -%} +## [{{ version | trim_start_matches(pat="v") }}]{% if previous.version %} - {{ timestamp | date(format="%Y-%m-%d") }}{% endif %} + +{% else -%} +## [Unreleased] + +{% endif -%} +{% for group, commits in commits | group_by(attribute="group") -%} +### {{ group }} + +{% for commit in commits -%} +- {% if commit.breaking %}**breaking:** {% endif -%} +{% if commit.scope %}**{{ commit.scope }}:** {% endif -%} +{{ commit.message | upper_first }} \ +([`{{ commit.id | truncate(length=7, end="") }}`](https://git.sr.ht/~mtmn/hakuna/commit/{{ commit.id }})) +{% endfor %} +{% endfor %} +""" +footer = "" +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 = "^test", group = "Testing" }, + { message = "^chore", group = "Housekeeping" }, + { message = "^chore\\(deps\\)", group = "Dependencies" }, + { message = "^ci", skip = true }, +] +protect_breaking_commits = true +filter_commits = true +tag_pattern = "v[0-9].*" +topo_order = false +sort_commits = "oldest" + +[bump] +initial_tag = "v0.1.0"