File tree 1 file changed +0
-23
lines changed
1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 38
38
from commitizen .exceptions import InvalidConfigurationError
39
39
from commitizen .git import GitCommit , GitTag
40
40
41
- CATEGORIES = [
42
- ("fix" , "fix" ),
43
- ("breaking" , "BREAKING CHANGES" ),
44
- ("feat" , "feat" ),
45
- ("refactor" , "refactor" ),
46
- ("perf" , "perf" ),
47
- ("test" , "test" ),
48
- ("build" , "build" ),
49
- ("ci" , "ci" ),
50
- ("chore" , "chore" ),
51
- ]
52
-
53
-
54
- def transform_change_type (change_type : str ) -> str :
55
- # TODO: Use again to parse, for this we have to wait until the maps get
56
- # defined again.
57
- _change_type_lower = change_type .lower ()
58
- for match_value , output in CATEGORIES :
59
- if re .search (match_value , _change_type_lower ):
60
- return output
61
- else :
62
- raise ValueError (f"Could not match a change_type with { change_type } " )
63
-
64
41
65
42
def get_commit_tag (commit : GitCommit , tags : List [GitTag ]) -> Optional [GitTag ]:
66
43
return next ((tag for tag in tags if tag .rev == commit .rev ), None )
You can’t perform that action at this time.
0 commit comments