|
| 1 | +# git-cliff configuration file. see https://git-cliff.org/docs/configuration |
| 2 | + |
| 3 | +[changelog] |
| 4 | +header = """ |
| 5 | +# Changelog\n |
| 6 | +""" |
| 7 | +# Tera template |
| 8 | +body = """ |
| 9 | +## [v{{ version }}](https://github.com/delta-io/delta-kernel-rs/tree/v{{ version }}/) ({{ timestamp | date(format="%Y-%m-%d") }}) |
| 10 | +
|
| 11 | +[Full Changelog](https://github.com/delta-io/delta-kernel-rs/compare/{{ previous.version }}...v{{ version }}) |
| 12 | +
|
| 13 | +{% for group, commits in commits | group_by(attribute="group") %} |
| 14 | + ### {{ group | striptags | trim | upper_first }} |
| 15 | + {% for commit in commits %} |
| 16 | + {{ loop.index }}. {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ |
| 17 | + {{ commit.message | split(pat="\n") | first | upper_first | replace(from="(#", to="([#")\ |
| 18 | + | replace(from="0)", to="0])")\ |
| 19 | + | replace(from="1)", to="1])")\ |
| 20 | + | replace(from="2)", to="2])")\ |
| 21 | + | replace(from="3)", to="3])")\ |
| 22 | + | replace(from="4)", to="4])")\ |
| 23 | + | replace(from="5)", to="5])")\ |
| 24 | + | replace(from="6)", to="6])")\ |
| 25 | + | replace(from="7)", to="7])")\ |
| 26 | + | replace(from="8)", to="8])")\ |
| 27 | + | replace(from="9)", to="9])") }}\ |
| 28 | + {% endfor %} |
| 29 | +{% endfor %} |
| 30 | +{% for commit in commits %} |
| 31 | +{% set message = commit.message | split(pat="\n") | first %}\ |
| 32 | +{% set pr = message | split(pat="(#") | last | split(pat=")") | first %}\ |
| 33 | +[#{{ pr }}]: https://github.com/delta-io/delta-kernel-rs/pull/{{ pr }}\ |
| 34 | +{% endfor %}\n\n\n |
| 35 | +""" |
| 36 | +footer = """ |
| 37 | +""" |
| 38 | +# remove the leading and trailing s |
| 39 | +trim = true |
| 40 | +postprocessors = [] |
| 41 | + |
| 42 | +[git] |
| 43 | +# parse the commits based on https://www.conventionalcommits.org |
| 44 | +conventional_commits = true |
| 45 | +# filter out the commits that are not conventional |
| 46 | +filter_unconventional = false |
| 47 | +# process each line of a commit as an individual commit |
| 48 | +split_commits = false |
| 49 | +# regex for preprocessing the commit messages |
| 50 | +commit_preprocessors = [] |
| 51 | +# regex for parsing and grouping commits. note that e.g. both doc and docs are matched since we have |
| 52 | +# trim = true above. |
| 53 | +commit_parsers = [ |
| 54 | + { field = "github.pr_labels", pattern = "breaking-change", group = "<!-- 0 --> 🏗️ Breaking changes" }, |
| 55 | + { message = "^feat", group = "<!-- 1 -->🚀 Features / new APIs" }, |
| 56 | + { message = "^fix", group = "<!-- 2 -->🐛 Bug Fixes" }, |
| 57 | + { message = "^doc", group = "<!-- 3 -->📚 Documentation" }, |
| 58 | + { message = "^perf", group = "<!-- 4 -->⚡ Performance" }, |
| 59 | + { message = "^refactor", group = "<!-- 5 -->🚜 Refactor" }, |
| 60 | + { message = "^test", group = "<!-- 6 -->🧪 Testing" }, |
| 61 | + { message = "^chore|^ci", group = "<!-- 7 -->⚙️ Chores/CI" }, |
| 62 | + { message = "^revert", group = "<!-- 8 -->◀️ Revert" }, |
| 63 | + { message = ".*", group = "<!-- 9 -->Other" }, |
| 64 | +] |
| 65 | +# filter out the commits that are not matched by commit parsers |
| 66 | +filter_commits = false |
| 67 | +# sort the tags topologically |
| 68 | +topo_order = false |
| 69 | +# sort the commits inside sections by oldest/newest order |
| 70 | +sort_commits = "oldest" |
0 commit comments