[changelog] header = """ # Changelog All notable, and not so notable, changes to this project will be documented in this file. """ 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 | striptags | trim | upper_first }} {% for commit in commits %} - [`{{ commit.id | truncate(length=7, end="") }}`](/commit/{{ commit.id }}) \ {% if commit.scope %}(*{{ commit.scope }}*) {% endif %}\ {% if commit.breaking %}[**breaking**] {% endif %}\ {{ commit.message | upper_first }} - {{ commit.author.name }} {%- endfor %} {% endfor %}\n """ footer = """ {% for release in releases -%} {% if release.version -%} {% if release.previous.version -%} [{{ release.version | trim_start_matches(pat="v") }}]: \ /compare/{{ release.previous.version }}..{{ release.version }} {% endif -%} {% else -%} [Unreleased]: /compare/{{ release.previous.version }}..HEAD {% endif -%} {% endfor %} """ trim = true postprocessors = [{ pattern = '', replace = "https://github.com/ryanccn/nrr" }] [git] conventional_commits = true filter_unconventional = true split_commits = false commit_preprocessors = [{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](/issues/${1}))" }] commit_parsers = [ { message = "^rm", group = "Removed" }, { message = "^feat", group = "Features" }, { message = "^fix", group = "Bug Fixes" }, { message = "^refactor", group = "Refactor" }, { message = "^perf", group = "Performance" }, { message = "^test", group = "Testing" }, { message = "^doc", group = "Documentation" }, { message = "^style", group = "Styling" }, { message = "^build\\(deps.*\\)", group = "Dependencies", scope = "" }, { message = "^chore\\(deps.*\\)", group = "Dependencies", scope = "" }, { message = "^chore", group = "Miscellaneous" }, { message = "^nix", group = "Miscellaneous", default_scope = "nix" }, { message = "^ci", group = "Miscellaneous", default_scope = "ci" }, { message = "^revert", group = "Revert" }, ] protect_breaking_commits = false filter_commits = false topo_order = true [bump] breaking_always_bump_major = false