diff --git a/commitizen/cz/conventional_commits/conventional_commits.py b/commitizen/cz/conventional_commits/conventional_commits.py index fcf0df4b58..c656092e67 100644 --- a/commitizen/cz/conventional_commits/conventional_commits.py +++ b/commitizen/cz/conventional_commits/conventional_commits.py @@ -172,7 +172,7 @@ def schema(self) -> str: def schema_pattern(self) -> str: PATTERN = ( - r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)" + r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump|improvement)" r"(\(\S+\))?:\s.*" ) return PATTERN diff --git a/tests/commands/test_check_command.py b/tests/commands/test_check_command.py index e5fe53b518..ab15e9ff13 100644 --- a/tests/commands/test_check_command.py +++ b/tests/commands/test_check_command.py @@ -31,6 +31,7 @@ ), "docs(check): pin pre-commit to v1.16.2", "docs(check): fix pre-commit setup", + "improvement(defaults): better parsing logic", "bump: version 1.16.1 → 1.16.2", "Merge pull request #135 from Lee-W/fix-pre-commit-hook\nFix pre commit hook", "docs(check): enforce cz check only whem committing",