[changelog] header = """ # Changelog\n """ # template for the changelog body # https://keats.github.io/tera/docs/#introduction 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 %} {%- if commit.scope -%} - *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{%- if commit.links %} ({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%}){% endif %} {% else -%} - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }} {% endif -%} ([{{commit.id | truncate(length=7, end="")}}](https://github.com/tomcur/termsnap/commit/{{commit.id}})) {% endfor %} {% endfor %}\n """ commit_parsers = [ { message = "!:", group = "Breaking" }, { message = "^feat", group = "Features" }, { message = "^fix", group = "Bug Fixes" }, { message = "^doc", group = "Documentation" }, { message = "^refactor", group = "Refactor" }, { message = "^test", group = "Testing" }, { message = "^build", group = "Build System and CI" }, { message = "^ci", group = "Build System and CI" }, { message = ".*", group = "Other" } ] [workspace] changelog_update = false [[package]] name = "termsnap" changelog_update = true changelog_path = "./CHANGELOG.md" changelog_include = ["termsnap-lib"]