From 3933f200018e205ee12b0307d583c96d559ff3cf Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Tue, 19 Dec 2023 19:54:01 +0100 Subject: [PATCH] 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 b7984c6073f07d06896dc5cfbe38cbbd563b078f --- cliff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliff.toml b/cliff.toml index 8a6c843..2ec492c 100644 --- a/cliff.toml +++ b/cliff.toml @@ -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 %}