We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e659590 commit 24120f8Copy full SHA for 24120f8
commitizen/bump_rule.py
@@ -68,9 +68,11 @@ def get_highest_by_messages(
68
>>> SemVerIncrement.get_highest_by_messages(commit_messages, lambda x: rule.get_increment(x, False))
69
'MINOR'
70
"""
71
- lines = (line for message in commit_messages for line in message.split("\n"))
72
- increments = map(get_increment, lines)
73
- return _find_highest_increment(increments)
+ return _find_highest_increment(
+ get_increment(line)
+ for message in commit_messages
74
+ for line in message.split("\n")
75
+ )
76
77
78
_VERSION_ORDERING = dict(
0 commit comments