File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 4
4
import re
5
5
from collections import OrderedDict
6
6
from glob import iglob
7
+ from logging import getLogger
7
8
from string import Template
8
9
from typing import cast
9
10
14
15
15
16
VERSION_TYPES = [None , PATCH , MINOR , MAJOR ]
16
17
18
+ logger = getLogger ("commitizen" )
19
+
17
20
18
21
def find_increment (
19
22
commits : list [GitCommit ], regex : str , increments_map : dict | OrderedDict
@@ -38,7 +41,15 @@ def find_increment(
38
41
new_increment = increments_map [match_pattern ]
39
42
break
40
43
44
+ if new_increment is None :
45
+ logger .debug (
46
+ f"no increment needed for '{ found_keyword } ' in '{ message } '"
47
+ )
48
+
41
49
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
+ )
42
53
increment = new_increment
43
54
44
55
if increment == MAJOR :
You can’t perform that action at this time.
0 commit comments