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.
This commit is contained in:
sankalp committed 2026-07-03 16:46:05 +05:45
1 parent d20a31bf38
commit 34f5d090ce
1 file changed
+1 -1
+1 -1
View File
@@ -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,
)