Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

2.0 KB
Raw Blame
# git-cliff configuration for automatic changelog generation
# https://git-cliff.org/docs/configuration

[changelog]
header = """
# Changelog

All notable changes to [Claudish](https://github.com/MadAppGang/claudish).

"""
body = """
{% if version %}\
    ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
    ## [Unreleased]
{% endif %}\
{% set breaking = commits | filter(attribute="breaking", value=true) %}\
{% if breaking | length > 0 %}
    ### ⚠ BREAKING CHANGES
    {% for commit in breaking %}
        - {{ commit.breaking_description | default(value=commit.message) | split(pat="\n\n") | first | split(pat="\n") | join(sep=" ") | trim }}\
          {% if commit.scope %} *({{ commit.scope }})* {% endif %}\
          ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/MadAppGang/claudish/commit/{{ commit.id }}))\
    {% endfor %}
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
    ### {{ group | upper_first }}
    {% for commit in commits %}
        - {{ commit.message | split(pat="\n") | first | trim }}\
          {% if commit.scope %} *({{ commit.scope }})* {% endif %}\
          ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/MadAppGang/claudish/commit/{{ commit.id }}))\
    {% endfor %}
{% endfor %}\n
"""
trim = true
footer = ""

[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
commit_parsers = [
    { message = "^feat", group = "New Features" },
    { message = "^fix", group = "Bug Fixes" },
    { message = "^docs", group = "Documentation" },
    { message = "^perf", group = "Performance" },
    { message = "^refactor", group = "Refactoring" },
    { message = "^chore: bump version", skip = true },
    { message = "^chore: update recommended models", skip = true },
    { message = "^chore", group = "Other Changes" },
    { message = "^ci", skip = true },
    { message = "^build", skip = true },
]
filter_commits = true
tag_pattern = "v[0-9]*"
topo_order = false
sort_commits = "newest"