如何解决Comitizen Non Interactive 开启交互模式
我可以按预期在交互模式下使用 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
解决方法
另一个库 git-cz (https://github.com/streamich/git-cz) 支持 --non-interactive 语法。
奇怪的是,commitizen (https://github.com/commitizen/cz-cli) 也有相同的关键字“git-cz”,但不幸的是它还不支持非交互模式!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。