Improve template: Always include lines that start with 'BREAKING CHANGE'

This commit is contained in:
Hocuri
2023-05-06 18:41:48 +02:00
parent 833d30123c
commit a202771d36

View File

@@ -61,6 +61,9 @@ body = """
### {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
{% for footer in commit.footers %}{% if 'BREAKING CHANGE' in footer.token %}
{% raw %} {% endraw %}- {{ footer.value }}\
{% endif %}{% endfor %}\
{% endfor %}
{% endfor %}\n
"""