Skip to content

Commit

Permalink
more small little changelog template stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Oct 12, 2024
1 parent a42240e commit b4c4889
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down Expand Up @@ -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" },
Expand Down

0 comments on commit b4c4889

Please sign in to comment.