File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
commitizen/cz/conventional_commits Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 11import os
22import re
3- from collections import OrderedDict
43
54from commitizen import defaults
65from commitizen .cz .base import BaseCommitizen
@@ -29,18 +28,9 @@ def parse_subject(text):
2928
3029
3130class ConventionalCommitsCz (BaseCommitizen ):
32- bump_pattern = r"^(BREAKING[\-\ ]CHANGE|feat|fix|refactor|perf)(\(.+\))?(!)?"
33- bump_map = OrderedDict (
34- (
35- (r"^.+!$" , defaults .MAJOR ),
36- (r"^BREAKING[\-\ ]CHANGE" , defaults .MAJOR ),
37- (r"^feat" , defaults .MINOR ),
38- (r"^fix" , defaults .PATCH ),
39- (r"^refactor" , defaults .PATCH ),
40- (r"^perf" , defaults .PATCH ),
41- )
42- )
43- commit_parser = r"^(?P<change_type>feat|fix|refactor|perf|BREAKING CHANGE)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?:\s(?P<message>.*)?" # noqa
31+ bump_pattern = defaults .bump_pattern
32+ bump_map = defaults .bump_map
33+ commit_parser = defaults .commit_parser
4434 version_parser = defaults .version_parser
4535 change_type_map = {
4636 "feat" : "Feat" ,
You can’t perform that action at this time.
0 commit comments