Skip to content

Commit 4d82192

Browse files
fix: Update patterns to consider packaging (#84)
1 parent 18cb6d1 commit 4d82192

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cz_version_bump/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class MeltanoCommitizen(BaseCommitizen):
2424
bump_pattern = defaults.bump_pattern
2525
bump_map = defaults.bump_map
26-
bump_pattern = r"^(feat|fix|refactor|perf|break|docs|ci|chore|style|revert|test|build)(\(.+\))?(!)?"
26+
bump_pattern = r"^(feat|fix|refactor|perf|break|docs|ci|chore|style|revert|test|build|packaging)(\(.+\))?(!)?"
2727
bump_map = OrderedDict(
2828
(
2929
(
@@ -41,10 +41,11 @@ class MeltanoCommitizen(BaseCommitizen):
4141
(r"^revert", defaults.PATCH),
4242
(r"^test", defaults.PATCH),
4343
(r"^build", defaults.PATCH),
44+
(r"^packaging", defaults.PATCH),
4445
)
4546
)
4647
commit_parser = r"^(?P<change_type>feat|fix|refactor|perf|break|docs)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?:\s(?P<message>.*)?"
47-
schema_pattern = r"(feat|fix|refactor|perf|break|docs|ci|chore|style|revert|test|build)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?:(\s.*)"
48+
schema_pattern = r"(feat|fix|refactor|perf|break|docs|ci|chore|style|revert|test|build|packaging)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?:(\s.*)"
4849
schema = dedent(
4950
"""
5051
<type>(<scope>): <subject>

0 commit comments

Comments
 (0)