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

Method _ask_major_version_zero

commitizen/commands/init.py:305–314  ·  view source on GitHub ↗

Ask for setting: major_version_zero

(self, version: VersionProtocol)

Source from the content-addressed store, hash-verified

303 return scheme
304
305 def _ask_major_version_zero(self, version: VersionProtocol) -> bool:
306 """Ask for setting: major_version_zero"""
307 if version.major > 0:
308 return False
309 major_version_zero: bool = questionary.confirm(
310 "Keep major version zero (0.x) during breaking changes",
311 default=True,
312 auto_enter=True,
313 ).unsafe_ask()
314 return major_version_zero
315
316 def _ask_update_changelog_on_bump(self) -> bool:
317 """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