diff --git a/cliff.toml b/cliff.toml index 275a02e..9830dda 100644 --- a/cliff.toml +++ b/cliff.toml @@ -40,12 +40,14 @@ body = """ {% if commit.merge_commit %}\ - 🔀 **{{ commit.message | upper_first }}** - \ ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ - {% for child in commit.extra.children %} - {{ " " | safe }}- {% if child.scope %}*({{ child.scope }})* {% endif %}\ - {% if child.breaking %}[**breaking**] {% endif %}\ - {{ child.message | upper_first }} - \ - ([{{ child.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ child.id }}))\ - {% endfor %}\ + {% if commit.extra and commit.extra.children %}\ + {% for child in commit.extra.children %} + {{ " " | safe }}- {% if child.scope %}*({{ child.scope }})* {% endif %}\ + {% if child.breaking %}[**breaking**] {% endif %}\ + {{ child.message | upper_first }} - \ + ([{{ child.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ child.id }}))\ + {% endfor %}\ + {% endif %}\ {% else %}\ - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ {% if commit.breaking %}[**breaking**] {% endif %}\