# https://git-cliff.org/docs/configuration [changelog] # Template engine: https://keats.github.io/tera/docs/ header = "" body = """ {% if version %}\ {% if previous.version %}\ ## [{{ version | trim_start_matches(pat="v") }}](/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }} {% else %}\ ## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }} {% endif %}\ {% else %}\ ## [unreleased] {% endif %}\ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | striptags | trim | upper_first }} {% for commit in commits %} - {% if commit.breaking %}(!) {% endif %}\ {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ {{ commit.message | upper_first }} \ ([{{ commit.id | truncate(length=8, end="") }}](/commit/{{ commit.id | truncate(length=8, end="") }}))\ {% endfor %} {% endfor %}\n """ footer = "Note: (!) indicates a breaking change.\n" trim = true postprocessors = [ { pattern = '', replace = "https://github.com/TritonVM/triton-tui" }, ] [git] conventional_commits = true filter_unconventional = true split_commits = false commit_preprocessors = [ { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))" }, ] # Use hack to sort the categories. See: https://github.com/orhun/git-cliff/issues/9 commit_parsers = [ { message = "^feat", group = " ✨ Features" }, { message = "^fix", group = " 🐛 Bug Fixes" }, { message = "^perf", group = " ⚡️ Performance" }, { message = "^doc", group = " 📚 Documentation" }, { message = "^WIP", skip = true }, { message = "^chore\\(deps\\)", skip = true }, { message = "^chore\\(pr\\)", skip = true }, { message = "^chore\\(pull\\)", skip = true }, { message = "^chore|ci|misc", group = " ⚙️ Miscellaneous" }, { message = "^refactor", group = " ♻️ Refactor" }, { message = "^test", group = " ✅ Testing" }, { body = ".*security", group = " 🔒️ Security" }, { message = "^revert", group = " ⏪️ Revert" }, { message = "^style", group = " 🎨 Styling" }, ] protect_breaking_commits = false filter_commits = false tag_pattern = "v[0-9]+\\.[0-9]+\\.[0-9]+" skip_tags = "" ignore_tags = "-alpha|-beta|-rc\\." topo_order = false sort_commits = "oldest"