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 b7984c6073
This commit is contained in:
parent
0f14d630bc
commit
3933f20001
|
@ -14,7 +14,7 @@ body = """
|
|||
{{- commit.message | upper_first }}
|
||||
{%- if commit.breaking %} (breaking){% endif %}
|
||||
{%- set fixes = commit.footers | filter(attribute="token", value="Fixes") %}
|
||||
{%- for fix in fixes %}{% if fix.separator == '#' %}{{ fix.separator }}{{ fix.value }}{% endif %}{% endfor %}
|
||||
{%- for fix in fixes %}{% if fix.separator|trim == '#' %}{{ fix.separator }}{{ fix.value }}{% endif %}{% endfor %}
|
||||
{%- endfor %}
|
||||
{% endfor %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue