Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion commitizen/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from decli import cli

from commitizen import commands, config, out, version_schemes
from commitizen.defaults import DEFAULT_SETTINGS
from commitizen.exceptions import (
CommitizenException,
ExitCode,
Expand Down Expand Up @@ -672,7 +673,7 @@ def main() -> None:
if args.name:
conf.update({"name": args.name})
elif not conf.path:
conf.update({"name": "cz_conventional_commits"})
conf.update({"name": DEFAULT_SETTINGS["name"]})

if args.debug:
logging.getLogger("commitizen").setLevel(logging.DEBUG)
Expand Down
4 changes: 2 additions & 2 deletions commitizen/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ def _ask_config_path(self) -> Path:

def _ask_name(self) -> str:
name: str = questionary.select(
"Please choose a cz (commit rule): (default: cz_conventional_commits)",
f"Please choose a cz (commit rule): (default: {DEFAULT_SETTINGS['name']})",
choices=self._construct_name_choice_with_description(),
default="cz_conventional_commits",
default=DEFAULT_SETTINGS["name"],
style=self.cz.style,
).unsafe_ask()
return name
Expand Down