summaryrefslogtreecommitdiff
path: root/cliff.toml
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2023-12-19 19:54:01 +0100
committerLevente Polyak <anthraxx@archlinux.org>2023-12-19 20:06:26 +0100
commit3933f200018e205ee12b0307d583c96d559ff3cf (patch)
tree94636fb9d77bd4e1741a83b3e17b3730f15698a6 /cliff.toml
parent0f14d630bce17ddb2d6020b611705ce5f2a4e802 (diff)
downloaddevtools-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.toml2
1 files changed, 1 insertions, 1 deletions
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 %}