Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit a6076a6d authored by Stefanos DOUMPOULAKIS's avatar Stefanos DOUMPOULAKIS
Browse files

fix: handle commits with up to 2 trailers (vecto/vecto!305)

mr: vecto/vecto!305

issue: 
parents 82279792 67fc7a91
Branches
Tags
No related merge requests found
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
# Configuration options are organized into tables and keys. # Configuration options are organized into tables and keys.
# See documentation for more information on available options. # See documentation for more information on available options.
# Note: To get the context for a given command run said command with -x flag.
[changelog] [changelog]
# template for the changelog footer # template for the changelog footer
header = """ header = """
...@@ -29,7 +31,7 @@ body = """ ...@@ -29,7 +31,7 @@ body = """
{% for commit in commits %} {% for commit in commits %}
- {% if commit.breaking %}[**breaking**] {% endif %}\ - {% if commit.breaking %}[**breaking**] {% endif %}\
{% if not commit.footers -%} {{ commit.message | upper_first }} {% endif %}\ {% if not commit.footers -%} {{ commit.message | upper_first }} {% endif %}\
{% if commit.footers -%} {% if commit.footers | length > 2 -%}
{% if commit.footers.1.token == "issue" and commit.footers.1.value != "" -%} {% if commit.footers.1.token == "issue" and commit.footers.1.value != "" -%}
CodeEU {{ commit.footers.1.value }}: {{ commit.message | upper_first }}\ CodeEU {{ commit.footers.1.value }}: {{ commit.message | upper_first }}\
{% elif commit.footers.1.token == "" -%} {% elif commit.footers.1.token == "" -%}
...@@ -38,6 +40,8 @@ body = """ ...@@ -38,6 +40,8 @@ body = """
{#{% if commit.footers.2.token == "description" and commit.footers.2.value != "" %} {#{% if commit.footers.2.token == "description" and commit.footers.2.value != "" %}
<p>{{ commit.footers.2.value }}</p> <p>{{ commit.footers.2.value }}</p>
{% endif -%} -#} {% endif -%} -#}
{% else -%}
{{ commit.message | upper_first }}
{% endif -%} {% endif -%}
{% endfor -%} {% endfor -%}
{% endfor -%}\n {% endfor -%}\n
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment