From 1d24ca4abb0bdea3fc3aa863f8f356ebce160523 Mon Sep 17 00:00:00 2001 From: "neovim-backports[bot]" <175700243+neovim-backports[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 13:02:12 -0400 Subject: [PATCH] backport: fix(cliff): strip "backport:" prefix from commit subject (#40245) Problem: Backport commits may have subjects like "backport: fix(ui): ...". (e.g. ecda67662f0f). git-cliff treats them as OTHER. Solution: Preprocess the subject to strip a leading "backport:" or "backport ". (cherry picked from commit 4c3b0ecb4668444fe9234686b1c1093d90232a1f) Co-authored-by: Justin M. Keyes --- scripts/cliff.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/cliff.toml b/scripts/cliff.toml index 2e495460db..4664531705 100644 --- a/scripts/cliff.toml +++ b/scripts/cliff.toml @@ -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 = [