backport: fix(cliff): strip "backport:" prefix from commit subject (#40245)

Problem:
Backport commits may have subjects like "backport: fix(ui): ...".
(e.g. ecda67662f). git-cliff treats them as OTHER.

Solution:
Preprocess the subject to strip a leading "backport:" or "backport ".

(cherry picked from commit 4c3b0ecb46)

Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
neovim-backports[bot]
2026-06-14 13:02:12 -04:00
committed by GitHub
parent 55205b3231
commit 1d24ca4abb

View File

@@ -43,7 +43,9 @@ filter_unconventional = true
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/neovim/neovim/issues/${2}))"},
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/neovim/neovim/issues/${2}))"},
# Strip "backport:" prefix so backported commits are not treated as OTHER.
{ pattern = '^backport[: ]\s*', replace = "" },
]
# regex for parsing and grouping commits
commit_parsers = [