MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / _get_commits

Method _get_commits

commitizen/commands/check.py:131–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129 )
130
131 def _get_commits(self) -> list[git.GitCommit]:
132 if (msg := self._get_commit_message()) is not None:
133 return [git.GitCommit(rev="", title="", body=self._filter_comments(msg))]
134
135 # Get commit messages from git log (--rev-range)
136 return git.get_commits(
137 git.get_default_branch() if self.use_default_range else None,
138 self.rev_range,
139 )
140
141 @staticmethod
142 def _filter_comments(msg: str) -> str:

Callers 1

__call__Method · 0.95

Calls 2

_get_commit_messageMethod · 0.95
_filter_commentsMethod · 0.95

Tested by

no test coverage detected