diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2023-12-19 19:54:01 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-12-19 20:06:26 +0100 |
commit | 3933f200018e205ee12b0307d583c96d559ff3cf (patch) | |
tree | 94636fb9d77bd4e1741a83b3e17b3730f15698a6 /cliff.toml | |
parent | 0f14d630bce17ddb2d6020b611705ce5f2a4e802 (diff) | |
download | devtools-3933f200018e205ee12b0307d583c96d559ff3cf.tar.xz |
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
Diffstat (limited to 'cliff.toml')
-rw-r--r-- | cliff.toml | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 %} |