File tree 1 file changed +3
-13
lines changed
commitizen/cz/conventional_commits
1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
import re
3
- from collections import OrderedDict
4
3
5
4
from commitizen import defaults
6
5
from commitizen .cz .base import BaseCommitizen
@@ -29,18 +28,9 @@ def parse_subject(text):
29
28
30
29
31
30
class 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
44
34
version_parser = defaults .version_parser
45
35
change_type_map = {
46
36
"feat" : "Feat" ,
You can’t perform that action at this time.
0 commit comments