MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / _ask_major_version_zero

Method _ask_major_version_zero

commitizen/commands/init.py:273–282  ·  view source on GitHub ↗

Ask for setting: major_version_zero

(self, version: VersionProtocol)

Source from the content-addressed store, hash-verified

271 return scheme
272
273 def _ask_major_version_zero(self, version: VersionProtocol) -> bool:
274 """Ask for setting: major_version_zero"""
275 if version.major > 0:
276 return False
277 major_version_zero: bool = questionary.confirm(
278 "Keep major version zero (0.x) during breaking changes",
279 default=True,
280 auto_enter=True,
281 ).unsafe_ask()
282 return major_version_zero
283
284 def _ask_update_changelog_on_bump(self) -> bool:
285 """Ask for setting: update_changelog_on_bump"""

Callers 1

__call__Method · 0.95

Calls 1

unsafe_askMethod · 0.80

Tested by

no test coverage detected