From 34f5d090ce9f9f7c8f5ffcab3f90682436023a4c Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 3 Jul 2026 16:46:05 +0545 Subject: [PATCH] chore(devgen): extend commit message regex to include perf and revert Update the regex in devgen/utils.py to recognize `perf` and `revert` as valid Conventional Commit types, ensuring alignment with the specification and preventing false negatives in automated analysis. --- devgen/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devgen/utils.py b/devgen/utils.py index ddfe2a7..b3e4ca7 100644 --- a/devgen/utils.py +++ b/devgen/utils.py @@ -46,7 +46,7 @@ def sanitize_ai_commit_message(raw_text: str) -> str: # - **fix: bug fix** # - chore(deps)!: breaking change header_pattern = re.compile( - r"^(\*\*)?(feat|fix|chore|refactor|docs|style|test|build|ci)(\(.*\))?!?: .*", + r"^(\*\*)?(feat|fix|chore|refactor|docs|style|test|build|ci|perf|revert)(\(.*\))?!?: .*", re.IGNORECASE, )