Zhengqbbb / cz-git

cz-git | czg 🛠️ DX first and more engineered, lightweight, customizable, standard output format Commitizen adapter and CLI
https://cz-git.qbb.sh
MIT License
1.05k stars 39 forks source link

[Bug report] Incorrect y/N prompt #174

Closed sagargurtu closed 3 months ago

sagargurtu commented 3 months ago

✅ Checklist

📄 System Info

System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 340.53 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.2 - ~/.nvm/versions/node/v18.20.2/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v18.20.2/bin/npm
  npmPackages:
    commitizen: ^4.3.0 => 4.3.0 
    cz-git: ^1.9.2 => 1.9.2

🔎 Description

Concise Description

The confirmCommit prompt shows "Yneh".

yneh

Expected behavior

It should show y/N instead.

🔗 Reproduction link / repo:

No response

Zhengqbbb commented 3 months ago

It should show y/N instead.

I don't think there is an error. If the result meets expectations, I hope it can be submitted directly by Enter. By the way, if you use h, you will understand why it's 'Yneh'.

image

Or you can explain what's error with the default value Or you can explain what's wrong with the default value.

sagargurtu commented 3 months ago

Oh gosh, my terminal isn't showing the options (y,n,e,h) below the confirmCommit prompt and I was wondering what that was. Resolving.

sagargurtu commented 3 months ago

Here's the screenshot.

screenshot
Zhengqbbb commented 3 months ago

Hey man, just h show help + Enter

https://github.com/Zhengqbbb/cz-git/assets/40693636/da16cecc-6e81-4482-9bcb-146922f84f1b