From b4c48893bccbdf356735e61ab3ac01e1b2368702 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Fri, 11 Oct 2024 22:01:19 -0400 Subject: [PATCH] more small little changelog template stuff --- cliff.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cliff.toml b/cliff.toml index 94c69f6d5..1a7d3d049 100644 --- a/cliff.toml +++ b/cliff.toml @@ -27,7 +27,8 @@ body = """ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {%- for commit in commits %} - - {{ commit.message | split(pat="\n") | first | upper_first | trim }}\ + - {% if commit.scope %}({{commit.scope}}) {% endif %}{{ commit.message | split(pat="\n") | first | upper_first | trim }} \ + ([{{ commit.id | truncate(length=7, end="") }}]({{self::remote_url()}}/commit/{{ commit.id }})) -\ {% if commit.remote.username %} by @{{ commit.remote.username }} {%- elif commit.author.name %} by {{ commit.author.name }} {%- endif -%} @@ -67,6 +68,7 @@ commit_preprocessors = [ ] # regex for parsing and grouping commits commit_parsers = [ + { message = "^docs", group = "Changed", scope="docs" }, { message = "^[a|A]dd", group = "Added" }, { message = "^[s|S]upport", group = "Added" }, { message = "^[r|R]emove", group = "Removed" },