File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ body = """
1414 ### {{ group | upper_first }}
1515 {% for commit in commits %}
1616 - {{ commit.message | upper_first }}\
17- {% for footer in commit.footers -%}
18- , {{ footer.token }}{{ footer.separator }}{{ footer.value }}\
19- {% endfor %}\
17+ {% if commit.footers %}\
18+ {% for footer in commit.footers -%}
19+ , {{ footer.token }}{{ footer.separator }}{{ footer.value }}\
20+ {% endfor %}\
21+ {% endif %}\
2022 {% endfor %}
2123{% endfor %}\n
2224"""
Original file line number Diff line number Diff line change @@ -26,9 +26,11 @@ body = """
2626 ### {{ group | upper_first }}
2727 {% for commit in commits %}
2828 - {{ commit.message | split(pat="\n ") | first | upper_first | trim }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))\
29- {% for footer in commit.footers -%}
30- , {{ footer.token }}{{ footer.separator }}{{ footer.value }}\
31- {% endfor %}\
29+ {% if commit.footers %}\
30+ {% for footer in commit.footers -%}
31+ , {{ footer.token }}{{ footer.separator }}{{ footer.value }}\
32+ {% endfor %}\
33+ {% endif %}\
3234 {% endfor %}
3335{% endfor %}\n
3436"""
You can’t perform that action at this time.
0 commit comments