change: display git-cliff's commit scope

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-02-08 09:39:14 -08:00
parent a21c48afe7
commit 310484a8cc
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -13,7 +13,7 @@ Release {{ version }} - {{ timestamp | date(format="%Y-%m-%d") }}
{% for group, commits in commits | group_by(attribute="group") %} {% for group, commits in commits | group_by(attribute="group") %}
{{ group | lower }}:\ {{ group | lower }}:\
{% for commit in commits %} {% for commit in commits %}
- {{ commit.id | truncate(length=8, end="") }}: {{ commit.message }}\ - {{ commit.id | truncate(length=8, end="") }}: {% if commit.scope %}({{ commit.scope }}) {% endif %}{{ commit.message }}\
{% endfor %} {% endfor %}
{% endfor %}\n {% endfor %}\n
""" """