# git-cliff configuration file # See https://git-cliff.org/docs/configuration [changelog] # changelog header header = """ # Changelog All notable changes to this project will be documented in this file. """ # template for the changelog body body = """ {% if version %}\ ## [{{ version | replace(from="v", to="") }}] - {{ timestamp | date(format="%Y-%m-%d") }} {% else %}\ ## [unreleased] {% endif %}\ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {% for commit in commits %} - {% if commit.scope %}*({{ commit.scope }})* {% endif %}{{ commit.message | upper_first }} {% endfor %} {% endfor %} """ # remove the leading and trailing whitespace from the template trim = true # changelog footer footer = "" [git] # parse the commits based on https://www.conventionalcommits.org conventional_commits = true # filter out the commits that do not match the patterns filter_unconventional = true # process each commit and assign it to a group commit_parsers = [ { message = "^feat", group = "Features" }, { message = "^fix", group = "Bug Fixes" }, { message = "^doc", group = "Documentation" }, { message = "^perf", group = "Performance" }, { message = "^refactor", group = "Refactoring" }, { message = "^style", group = "Styling" }, { message = "^test", group = "Testing" }, { message = "^ci", group = "CI/CD" }, { message = "^chore", group = "Miscellaneous Tasks" }, ] # protect breaking changes from being skipped protect_breaking_commits = false # filter out the commits that are not conventional filter_commits = false # glob pattern for matching git tags tag_pattern = "v[0-9]*" # sort the tags topologically topo_order = false # sort the commits inside a group by oldest/newest sort_commits = "oldest"