# git-cliff configuration for FloCafe # https://git-cliff.org/docs/configuration [changelog] # changelog header header = """ # Changelog All notable changes to Flo Cafe are documented here. Dates are release dates, not commit dates. Format loosely follows [Keep a Changelog](https://keepachangelog.com/). """ # template for the changelog body body = """ {% if version %}\ ## [{{ version | trim_start_matches(pat="v") }}] - {{ 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 %} - {{ commit.message | split(pat="\n") | first | trim }} {%- endfor %} {% endfor %} """ # template for the changelog footer footer = "" # remove the leading and trailing whitespace trim = true [git] # parse the commits based on https://www.conventionalcommits.org conventional_commits = true # filter out the commits that are not conventional filter_unconventional = false # process each line of a commit as an individual commit split_commits = false # regex for preprocessing the commit messages commit_preprocessors = [] # regex for parsing and grouping commits commit_parsers = [ { message = "^feat", group = "Added" }, { message = "^fix", group = "Fixed" }, { message = "^doc", group = "Changed" }, { message = "^perf", group = "Changed" }, { message = "^refactor", group = "Changed" }, { message = "^style", group = "Changed" }, { message = "^test", group = "Changed" }, { message = "^ci", group = "Changed" }, { message = "^chore\\(release\\)", skip = true }, { message = "^chore\\(deps.*\\)", skip = true }, { message = "^chore", group = "Changed" }, { message = ".*", group = "Changed" }, ] # protect breaking changes from being skipped due to matching a skipping rule protect_breaking_commits = false # filter out the commits that are not matched by commit parsers filter_commits = false # regex for matching git tags (only app tags like 3.3.0 or v2.7.8 or 3.3.1-beta.1) tag_pattern = "^(v)?[0-9]+\\.[0-9]+\\.[0-9]+.*$" # regex for skipping tags (e.g. tax pack plugins or release gates) skip_tags = "^tax-pack-.*" # regex for ignoring tags ignore_tags = "" # sort the tags topologically topo_order = false # sort the tags chronologically sort_commits = "oldest"