mirror of
https://github.com/neovim/neovim.git
synced 2026-06-15 16:23:48 +00:00
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 commit4c3b0ecb46) Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
committed by
GitHub
parent
55205b3231
commit
1d24ca4abb
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user