|
| 1 | +[changelog] |
| 2 | +header = """ |
| 3 | +# Changelog |
| 4 | +All notable changes to this project will be documented in this file. |
| 5 | +""" |
| 6 | + |
| 7 | +body = """ |
| 8 | +{% if version %}## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}{% else %}## [unreleased]{% endif %} |
| 9 | +
|
| 10 | +{% for group, commits in commits | group_by(attribute="group") %} |
| 11 | +### {{ group | upper_first }} |
| 12 | +{% for commit in commits %} |
| 13 | +* {% if commit.breaking %}**Breaking:** {% endif %}{{ commit.message | upper_first }}{% if commit.id %} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})){% endif %} |
| 14 | +{% endfor %} |
| 15 | +{% endfor %}\n |
| 16 | +""" |
| 17 | + |
| 18 | +trim = true |
| 19 | +footer = "" |
| 20 | + |
| 21 | +[git] |
| 22 | +conventional_commits = true |
| 23 | +filter_unconventional = true |
| 24 | +commit_parsers = [ |
| 25 | + { message = "^feat", group = "Features" }, |
| 26 | + { message = "^fix", group = "Bug Fixes" }, |
| 27 | + { message = "^docs", group = "Documentation" }, |
| 28 | + { message = "^perf", group = "Performance" }, |
| 29 | + { message = "^refactor", group = "Refactor" }, |
| 30 | + { message = "^style", group = "Styling" }, |
| 31 | + { message = "^test", group = "Testing" }, |
| 32 | + { message = "^chore\\(release\\): prepare for", skip = true }, |
| 33 | + { message = "^chore", group = "Miscellaneous Tasks" }, |
| 34 | +] |
| 35 | +protect_breaking_commits = false |
| 36 | +filter_commits = false |
| 37 | +tag_pattern = "v[0-9]*" |
| 38 | +skip_tags = "" |
| 39 | +ignore_tags = "" |
| 40 | +date_order = false |
| 41 | +sort_commits = "oldest" |
0 commit comments