chore(config): improve child commit handling in merge template
All checks were successful
Auto Changelog & Release / release (push) Successful in 14s
All checks were successful
Auto Changelog & Release / release (push) Successful in 14s
This commit is contained in:
@@ -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 }}))\
|
||||||
|
{% if commit.extra and commit.extra.children %}\
|
||||||
{% for child in commit.extra.children %}
|
{% for child in commit.extra.children %}
|
||||||
{{ " " | safe }}- {% if child.scope %}*({{ child.scope }})* {% endif %}\
|
{{ " " | safe }}- {% if child.scope %}*({{ child.scope }})* {% endif %}\
|
||||||
{% if child.breaking %}[**breaking**] {% endif %}\
|
{% if child.breaking %}[**breaking**] {% endif %}\
|
||||||
{{ child.message | upper_first }} - \
|
{{ child.message | upper_first }} - \
|
||||||
([{{ child.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ child.id }}))\
|
([{{ child.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ child.id }}))\
|
||||||
{% endfor %}\
|
{% 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 %}\
|
||||||
|
|||||||
Reference in New Issue
Block a user