File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 44import re
55from collections import OrderedDict
66from glob import iglob
7+ from logging import getLogger
78from string import Template
89from typing import cast
910
1415
1516VERSION_TYPES = [None , PATCH , MINOR , MAJOR ]
1617
18+ logger = getLogger ("commitizen" )
19+
1720
1821def find_increment (
1922 commits : list [GitCommit ], regex : str , increments_map : dict | OrderedDict
@@ -38,7 +41,15 @@ def find_increment(
3841 new_increment = increments_map [match_pattern ]
3942 break
4043
44+ if new_increment is None :
45+ logger .debug (
46+ f"no increment needed for '{ found_keyword } ' in '{ message } '"
47+ )
48+
4149 if VERSION_TYPES .index (increment ) < VERSION_TYPES .index (new_increment ):
50+ logger .debug (
51+ f"increment detected is '{ new_increment } ' due to '{ found_keyword } ' in '{ message } '"
52+ )
4253 increment = new_increment
4354
4455 if increment == MAJOR :
You can’t perform that action at this time.
0 commit comments