1
1
mirror of https://github.com/orhun/git-cliff.git synced 2025-01-08 13:17:21 +03:00

chore(config): indicate the breaking changes via default config

This commit is contained in:
Orhun Parmaksız 2021-12-11 15:20:29 +03:00
parent 8445313b13
commit 316c11b607
No known key found for this signature in database
GPG Key ID: B928720AEC532117
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ body = """
{% for group, commits in commits | group_by(attribute="group") %} {% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }} ### {{ group | upper_first }}
{% for commit in commits %} {% for commit in commits %}
- {{ commit.message | upper_first }}\ - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
{% endfor %} {% endfor %}
{% endfor %}\n {% endfor %}\n
""" """

View File

@ -14,7 +14,7 @@ if [ -n "$1" ]; then
{% for group, commits in commits | group_by(attribute=\"group\") %} {% for group, commits in commits | group_by(attribute=\"group\") %}
{{ group | upper_first }}\ {{ group | upper_first }}\
{% for commit in commits %} {% for commit in commits %}
- {{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\ - {% if commit.breaking %}(breaking) {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\
{% endfor %} {% endfor %}
{% endfor %}" {% endfor %}"
changelog=$(cargo run -- --unreleased --strip all) changelog=$(cargo run -- --unreleased --strip all)