cliff.toml (1548B)
1 [changelog] 2 header = "# Changelog\n\n" 3 body = """ 4 {% if version -%} 5 ## [{{ version | trim_start_matches(pat="v") }}]{% if previous.version %} - {{ timestamp | date(format="%Y-%m-%d") }}{% endif %} 6 7 {% if previous.version -%} 8 [compare](https://git.sr.ht/~mtmn/corpus/log/{{ previous.version }}..{{ version }}) 9 10 {% endif -%} 11 {% else -%} 12 ## [Unreleased] 13 14 {% endif -%} 15 {% for group, commits in commits | group_by(attribute="group") -%} 16 ### {{ group }} 17 18 {% for commit in commits -%} 19 - {% if commit.breaking %}**breaking:** {% endif -%} 20 {% if commit.scope %}**{{ commit.scope }}:** {% endif -%} 21 {{ commit.message | upper_first }} \ 22 ([`{{ commit.id | truncate(length=7, end="") }}`](https://git.sr.ht/~mtmn/corpus/commit/{{ commit.id }})) 23 {% endfor %} 24 {% endfor %} 25 """ 26 footer = "" 27 trim = true 28 29 [git] 30 conventional_commits = true 31 filter_unconventional = true 32 split_commits = false 33 commit_parsers = [ 34 { message = "^feat", group = "Features" }, 35 { message = "^fix", group = "Bug Fixes" }, 36 { message = "^revert", group = "Reverts" }, 37 { message = "^docs", group = "Documentation" }, 38 { message = "^test", group = "Testing" }, 39 { message = "^chore", group = "Housekeeping" }, 40 { message = "^ci", group = "Housekeeping" }, 41 { message = "^nix", group = "Housekeeping" }, 42 { message = "^chore\\(deps\\)", group = "Dependencies" }, 43 ] 44 protect_breaking_commits = true 45 filter_commits = true 46 tag_pattern = "v[0-9].*" 47 topo_order = false 48 sort_commits = "oldest"