|
| 1 | +# https://github.com/orhun/git-cliff/blob/main/examples/keepachangelog.toml |
| 2 | + |
| 3 | +[changelog] |
| 4 | +header = """ |
| 5 | +# Changelog\n |
| 6 | +All notable changes to this project will be documented in this file. |
| 7 | +
|
| 8 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 9 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n |
| 10 | +""" |
| 11 | +body = """ |
| 12 | +{% if version -%} |
| 13 | + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} |
| 14 | +{% else -%} |
| 15 | + ## [Unreleased] |
| 16 | +{% endif -%} |
| 17 | +{% for group, commits in commits | group_by(attribute="group") %} |
| 18 | + ### {{ group | upper_first }} |
| 19 | + {% for commit in commits %} |
| 20 | + - {{ commit.message | split(pat="\n") | first | upper_first | trim }}\ |
| 21 | + {% endfor %} |
| 22 | +{% endfor %}\n |
| 23 | +""" |
| 24 | +footer = """ |
| 25 | +{% for release in releases -%} |
| 26 | + {% if release.version -%} |
| 27 | + {% if release.previous.version -%} |
| 28 | + [{{ release.version | trim_start_matches(pat="v") }}]: \ |
| 29 | + https://github.com/pimalaya/ortie\ |
| 30 | + /compare/{{ release.previous.version }}..{{ release.version }} |
| 31 | + {% endif -%} |
| 32 | + {% else -%} |
| 33 | + [unreleased]: https://github.com/pimalaya/ortie\ |
| 34 | + /compare/{{ release.previous.version }}..HEAD |
| 35 | + {% endif -%} |
| 36 | +{% endfor %} |
| 37 | +<!-- generated by git-cliff on {{ now() }} --> |
| 38 | +""" |
| 39 | +trim = true |
| 40 | + |
| 41 | +[git] |
| 42 | +conventional_commits = true |
| 43 | +filter_unconventional = false |
| 44 | +commit_parsers = [ |
| 45 | + { message = "^init", group = "Added" }, |
| 46 | + { message = "^add", group = "Added" }, |
| 47 | + { message = "^remove", group = "Removed" }, |
| 48 | + { message = "^delete", group = "Removed" }, |
| 49 | + { message = "^build: release", skip = true }, |
| 50 | + { message = "^.*: add", group = "Added" }, |
| 51 | + { message = "^.*: remove", group = "Removed" }, |
| 52 | + { message = "^.*: delete", group = "Removed" }, |
| 53 | + { message = "^test", group = "Fixed" }, |
| 54 | + { message = "^fix", group = "Fixed" }, |
| 55 | + { message = "^.*: fix", group = "Fixed" }, |
| 56 | + { message = "^.*", group = "Changed" }, |
| 57 | +] |
| 58 | +filter_commits = false |
| 59 | +topo_order = false |
| 60 | +sort_commits = "oldest" |
0 commit comments