# git-cliff configuration for GitHub release notes. # https://git-cliff.org/docs/configuration [changelog] body = """ {%- if version -%} ## {{ version }} {%- else -%} ## Unreleased {%- endif %} {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | striptags | trim }} {% for commit in commits -%} - {% if commit.scope and commit.scope != "deps" and commit.scope != "deps-dev" %}{{ commit.scope }}: {% endif %}{% if commit.breaking %}**Breaking:** {% endif %}{{ commit.message | upper_first | trim }} {% endfor %} {%- endfor -%} {% set first_time_contributors = github.contributors | filter(attribute="is_first_time", value=true) %} {% if first_time_contributors | length > 0 %} ### ๐ŸŒฑ New Contributors {% for contributor in first_time_contributors -%} - @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} {% endfor %} {% endif -%} {% if previous.version and version -%} **Full Changelog**: https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/compare/{{ previous.version }}...{{ version }} {% endif %} """ trim = true render_always = true [git] conventional_commits = true filter_unconventional = true require_conventional = true split_commits = false protect_breaking_commits = true filter_commits = true fail_on_unmatched_commit = true tag_pattern = "v[0-9]+\\.[0-9]+\\.[0-9]+" topo_order = false topo_order_commits = true sort_commits = "oldest" commit_parsers = [ { message = "^feat", group = "โœจ Features" }, { message = "^fix", group = "๐Ÿ› Fixes" }, { message = "^perf", group = "โšก Performance" }, { message = "^security", group = "๐Ÿ”’ Security" }, { message = "^docs", group = "๐Ÿ“š Documentation" }, { message = "^refactor", group = "โ™ป๏ธ Refactors" }, { message = "^test", group = "๐Ÿงช Tests" }, { message = "^build", group = "๐Ÿ”ง Maintenance" }, { message = "^chore\\(deps.*\\)", group = "๐Ÿ“ฆ Dependencies" }, { message = "^chore", group = "๐Ÿ”ง Maintenance" }, { message = "^style", group = "๐Ÿ”ง Maintenance" }, { message = "^ci", group = "โš™๏ธ CI" } ] [remote.github] owner = "Dictionarry-Hub" repo = "profilarr"