我可以按预期使用具有交互模式的 commitizen。但是在非交互模式下不起作用。
git-cz --non-interactive --type=feat --subject="add onClick prop to component"
cz-cli@4.2.3, cz-conventional-changelog@3.3.0
? Select the type of change that you're committing: (Use arrow keys)
❯ feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing tests or correcting existing tests
(Move up and down to reveal more choices)
这里可能出了什么问题?参考:https ://www.npmjs.com/package/git-cz