| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
[changelog] |
| 9 |
|
| 10 |
header = """ |
| 11 |
# Changelog\n |
| 12 |
All notable changes to this project will be documented in this file.\n |
| 13 |
""" |
| 14 |
|
| 15 |
|
| 16 |
body = """ |
| 17 |
{% if version %}\ |
| 18 |
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} |
| 19 |
{% else %}\ |
| 20 |
## [unreleased] |
| 21 |
{% endif %}\ |
| 22 |
{% for group, commits in commits | group_by(attribute="group") %} |
| 23 |
### {{ group | striptags | trim | upper_first }} |
| 24 |
{% for commit in commits %} |
| 25 |
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ |
| 26 |
{% if commit.breaking %}[**breaking**] {% endif %}\ |
| 27 |
{{ commit.message | upper_first }}\ |
| 28 |
{% endfor %} |
| 29 |
{% endfor %}\n |
| 30 |
""" |
| 31 |
|
| 32 |
footer = """ |
| 33 |
<!-- generated by git-cliff --> |
| 34 |
""" |
| 35 |
|
| 36 |
trim = true |
| 37 |
|
| 38 |
postprocessors = [ |
| 39 |
|
| 40 |
] |
| 41 |
|
| 42 |
[git] |
| 43 |
|
| 44 |
conventional_commits = true |
| 45 |
|
| 46 |
filter_unconventional = true |
| 47 |
|
| 48 |
split_commits = false |
| 49 |
|
| 50 |
commit_preprocessors = [ |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
] |
| 57 |
|
| 58 |
commit_parsers = [ |
| 59 |
{ message = "^feat", group = "<!-- 0 -->๐ Features" }, |
| 60 |
{ message = "^fix", group = "<!-- 1 -->๐ Bug Fixes" }, |
| 61 |
{ message = "^doc", group = "<!-- 3 -->๐ Documentation" }, |
| 62 |
{ message = "^perf", group = "<!-- 4 -->โก Performance" }, |
| 63 |
{ message = "^refactor", group = "<!-- 2 -->๐ Refactor" }, |
| 64 |
{ message = "^style", group = "<!-- 5 -->๐จ Styling" }, |
| 65 |
{ message = "^test", group = "<!-- 6 -->๐งช Testing" }, |
| 66 |
{ message = "^chore\\(release\\): prepare for", skip = true }, |
| 67 |
{ message = "^chore\\(deps.*\\)", skip = true }, |
| 68 |
{ message = "^chore\\(pr\\)", skip = true }, |
| 69 |
{ message = "^chore\\(pull\\)", skip = true }, |
| 70 |
{ message = "^chore|^ci", group = "<!-- 7 -->โ๏ธ Miscellaneous Tasks" }, |
| 71 |
{ body = ".*security", group = "<!-- 8 -->๐ก๏ธ Security" }, |
| 72 |
{ message = "^revert", group = "<!-- 9 -->โ๏ธ Revert" }, |
| 73 |
] |
| 74 |
|
| 75 |
protect_breaking_commits = false |
| 76 |
|
| 77 |
filter_commits = true |
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
topo_order = false |
| 86 |
|
| 87 |
sort_commits = "oldest" |
| 88 |
|
| 89 |
|