Skip to content

Commit

Permalink
fix(template): use 7 digits for short SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 2, 2021
1 parent dfab978 commit 1f85263
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/detailed.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ body = """
{% endif %}\
{% if previous %}\
{% if previous.commit_id %}
[{{ previous.commit_id | truncate(length=8, end="") }}]({{ previous.commit_id }})...\
[{{ commit_id | truncate(length=8, end="") }}]({{ commit_id }})
[{{ previous.commit_id | truncate(length=7, end="") }}]({{ previous.commit_id }})...\
[{{ commit_id | truncate(length=7, end="") }}]({{ commit_id }})
{% endif %}\
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=8, end="") }}]({{ commit.id }}))\
- {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))\
{% endfor %}
{% endfor %}\n
"""
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ -n "$1" ]; then
{% for group, commits in commits | group_by(attribute=\"group\") %}
{{ group | upper_first }}\
{% for commit in commits %}
- {{ commit.message | upper_first }} ({{ commit.id | truncate(length=8, end=\"\") }})\
- {{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\
{% endfor %}
{% endfor %}"
changelog=$(cargo run -- --unreleased --strip all)
Expand Down

0 comments on commit 1f85263

Please sign in to comment.