chore(config): improve child commit handling in merge template
All checks were successful
Auto Changelog & Release / release (push) Successful in 14s

This commit is contained in:
2025-09-27 22:21:44 +02:00
parent fa1a8673f6
commit 65462f5a14

View File

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