|
| 1 | +# git-cliff configuration |
| 2 | +# https://git-cliff.org/docs/configuration |
| 3 | + |
| 4 | +[changelog] |
| 5 | +header = """ |
| 6 | +# Changelog\n |
| 7 | +All notable changes to this project will be documented in this file.\n |
| 8 | +""" |
| 9 | +body = """ |
| 10 | +{% if version %}\ |
| 11 | + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} |
| 12 | +{% else %}\ |
| 13 | + ## [unreleased] |
| 14 | +{% endif %}\ |
| 15 | +{% for group, commits in commits | group_by(attribute="group") %} |
| 16 | + ### {{ group | upper_first }} |
| 17 | + {% for commit in commits %} |
| 18 | + - {% if commit.scope %}**{{ commit.scope }}:** {% endif %}\ |
| 19 | + {{ commit.message | upper_first }}\ |
| 20 | + {% if commit.breaking %} ⚠️ BREAKING{% endif %}\ |
| 21 | + {% endfor %} |
| 22 | +{% endfor %}\n |
| 23 | +""" |
| 24 | +footer = "" |
| 25 | +trim = true |
| 26 | + |
| 27 | +[git] |
| 28 | +conventional_commits = true |
| 29 | +filter_unconventional = false |
| 30 | +split_commits = false |
| 31 | +protect_breaking_commits = false |
| 32 | +filter_commits = false |
| 33 | +tag_pattern = "v[0-9]*" |
| 34 | +skip_tags = "beta|alpha|rc" |
| 35 | +ignore_tags = "" |
| 36 | +topo_order = false |
| 37 | +sort_commits = "newest" |
| 38 | + |
| 39 | +commit_parsers = [ |
| 40 | + { message = "^feat", group = "<!-- 0 -->🚀 Features" }, |
| 41 | + { message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" }, |
| 42 | + { message = "^perf", group = "<!-- 2 -->⚡ Performance" }, |
| 43 | + { message = "^refactor", group = "<!-- 3 -->🔧 Refactoring" }, |
| 44 | + { message = "^docs", group = "<!-- 4 -->📝 Documentation" }, |
| 45 | + { message = "^test", group = "<!-- 5 -->✅ Testing" }, |
| 46 | + { message = "^style", group = "<!-- 6 -->🎨 Styling" }, |
| 47 | + { message = "^chore", group = "<!-- 7 -->🏗️ Chores" }, |
| 48 | + { message = "^ci", group = "<!-- 8 -->🔄 CI/CD" }, |
| 49 | + { message = "^revert", group = "<!-- 9 -->⏪ Revert" }, |
| 50 | + { message = ".*", group = "<!-- 10 -->📦 Miscellaneous" }, |
| 51 | +] |
0 commit comments