From 50a07bf97c30963ec21cf095ea558f40b992b7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Pedrosa?= Date: Wed, 22 Apr 2020 15:58:15 +0100 Subject: [PATCH] fix(parsing): add option for improvement type --- commitizen/cz/conventional_commits/conventional_commits.py | 2 +- tests/commands/test_check_command.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commitizen/cz/conventional_commits/conventional_commits.py b/commitizen/cz/conventional_commits/conventional_commits.py index fcf0df4b5..c656092e6 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 e5fe53b51..ab15e9ff1 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",