Skip to content

Commit 36c72b6

Browse files
bearomorphismwoile
andauthored
refactor(bump): readability
Co-authored-by: Santiago Fraire Willemoes <santiwilly@gmail.com>
1 parent 13cd81d commit 36c72b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎commitizen/commands/bump.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ def _find_increment(self, commits: list[git.GitCommit]) -> Increment | None:
160160
f"'{self.config.settings['name']}' rule does not support bump"
161161
)
162162

163+
commit_messages = (commit.message for commit in self.cz.filter_commits_before_bump(commits))
163164
increment = VersionIncrement.get_highest_by_messages(
164-
(commit.message for commit in self.cz.filter_commits_before_bump(commits)),
165+
commit_messages,
165166
bump_pattern,
166167
bump_map,
167168
)

0 commit comments

Comments
 (0)