问题标签 [commitizen]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
angular - 在 Angular 上更新到 esLint 会中断 commitlint
我刚刚将 Angular 11 应用程序更新为 eslint 并安装了 commitizen、commitlint、husky 和语义发布,以通过 npm 和 Travis 驱动 CI。
我按照 Angular 推荐链接上的说明进行操作。
Linting 本身工作正常。
该问题出现在 commit-msg 挂钩中,但较早引起。
现在,当我运行时,npx git-cz
我得到了一组不同的“提交类型”类型。
我得到修复、更新、破坏、文档、构建、新建、升级。
以前我得到了 Angular 标准列表“feat、fix、docs、style、refactor、perf、test、ci、chore、revert”。
commit-msg 挂钩失败的原因有两个:
type must be lower-case
type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]
我花了几个小时阅读所有相关文档,但找不到如何将类型列表更改回原来的样子。
任何建议都会非常受欢迎。
commitizen - Commitizen Non Interactive 正在启动交互模式
我可以按预期使用具有交互模式的 commitizen。但是在非交互模式下不起作用。
这里可能出了什么问题?参考:https ://www.npmjs.com/package/git-cz
commitizen - 在与代码无关的项目中使用 commitizen
我想开始将 commitizen 合并到我的存储库中;然而,实现似乎围绕着在存储库上添加一个 js 依赖项,并独立调用它(并用钩子强制执行它)。
我的项目目前是 python,但这不是重点——在我看来,commitizen 应该能够与底层存储库正交。
但是,我不明白这怎么可能。也许说明不存在,或者我还没有将它们与“主要使用路径”分开。
git - 命令行中的Commitizen:有没有办法回到上一个字段?
我正在为我的 git 提交使用 npm 包commitizen。很棒的工具。
运行时cz
:每当我填写一些字段,然后意识到我想在提交之前进行更改,我必须 Ctrl+C 并重新开始。
肯定有更好的方法吗?(例如,一个可以重新开始的命令,其中的字段预先填充为其中留下的任何值)。我搜索了commitizen npm,github,一般在谷歌上,但没有成功。
有什么功能可以帮助解决这个问题吗?
babel-jest - Jest and Commitizen:即使测试失败,提交仍然有效
我目前正在使用 Jest、Husky、Commitizen 和 Vuepress。但是,当开玩笑测试或构建失败时,提交挂钩仍然有效。当事情失败时,我该如何解决这个问题以退出 commitizen 钩子?这是 package.json 中的相关行:
husky - 使用 Husky v7 设置的 cz-conventional-changelog-for-jira 无法正常工作
这是我的 .czrc
这是我的 npm 脚本
在我的 husky 钩子文件(prepare-commit-msg,commit-msg)中 .husky/commit-msg npm run commit-msg
.husy/prepare-commit-msg npm run prepare-commit-msg
当我运行 git-commit 时出现以下错误
如果我将 .czrc 更改为
它完美地工作。
javascript - Commitizen 和 husky 似乎两次触发了 pre-commit 钩子
我正在尝试使用 husky 配置 commitizen,当我使用 package.json 中的自定义脚本提交时,提交会被触发两次。但是,当我尝试运行 git commit 时,情况并非如此。
在 github 上打开了这个问题,但如果有人知道任何解决方法,那就太好了
Github 问题:https ://github.com/commitizen/cz-cli/issues/844
下面是package.json