Skip to content

Commit

Permalink
fix(commit): ensure 'questions' is a Python dictionary and not TOML
Browse files Browse the repository at this point in the history
Details: If using a TOML configuration, the type was 'tomlkit.items.AoT'
---

Signed-off-by: Adrian DC <[email protected]>
  • Loading branch information
AdrianDC committed Dec 13, 2024
1 parent de33de3 commit c5a37be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commitizen/commands/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def read_backup_message(self) -> str | None:
def prompt_commit_questions(self) -> str:
# Prompt user for the commit message
cz = self.cz
questions = cz.questions()
questions = [dict(question) for question in cz.questions()]

for question in filter(lambda q: q["type"] == "list", questions):
question["use_shortcuts"] = self.config.settings["use_shortcuts"]
try:
Expand Down

0 comments on commit c5a37be

Please sign in to comment.