Skip to content

Commit 3933f20

Browse files
committed
fix(cliff): trim fix separator before checking merge request id
The fix separator contains a whitespace, which made the check never match. We now trim the separator before checking, making it resilient against any kind of spaces. Fixes b7984c6
1 parent 0f14d63 commit 3933f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cliff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body = """
1414
{{- commit.message | upper_first }}
1515
{%- if commit.breaking %} (breaking){% endif %}
1616
{%- set fixes = commit.footers | filter(attribute="token", value="Fixes") %}
17-
{%- for fix in fixes %}{% if fix.separator == '#' %}{{ fix.separator }}{{ fix.value }}{% endif %}{% endfor %}
17+
{%- for fix in fixes %}{% if fix.separator|trim == '#' %}{{ fix.separator }}{{ fix.value }}{% endif %}{% endfor %}
1818
{%- endfor %}
1919
{% endfor %}
2020

0 commit comments

Comments
 (0)