Skip to content

Commit

Permalink
test(cliff): add commit id after commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
DamChtlv committed May 7, 2024
1 parent 1f56c2b commit 1c273c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ body = """
## [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 }})* {% endif %}\
{% if commit.breaking %}[**⚠️ CHANGE**] {% endif %}\
{{ commit.message | upper_first }}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))\
{% endfor %}
{% endfor %}\n
"""
Expand Down Expand Up @@ -60,7 +59,7 @@ commit_parsers = [
{ message = "^fix", group = "<!-- 1 -->🐛 Bugs fixed" },
{ message = "^ticket", group = "<!-- 2 -->🚜 Ticket" },
{ message = "^update|^refact|^maj", group = "<!-- 6 -->🔨 Update" },
{ message = "^docs", group = "<!-- 3 -->📚 Documentation" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^init", group = "<!-- 4 -->💡 Initialisation" },
{ message = "^style", group = "<!-- 5 -->🎨 Style" },
{ message = "^test", group = "<!-- 7 -->🧪 Testing" },
Expand Down

0 comments on commit 1c273c6

Please sign in to comment.