2

我可以按预期使用具有交互模式的 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

4

1 回答 1

0

另一个库 git-cz ( https://github.com/streamich/git-cz )支持 --non-interactive 语法。

奇怪的是,commitizen(https://github.com/commitizen/cz-cli)也有相同的关键字“git-cz”,但不幸的是它还不支持非交互模式!

于 2021-05-25T21:30:19.057 回答