commitizen / commitizen/cz-cli

Interactive --retry (prefill with previous attempt information)

未关闭
#485 8 条评论 14 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
17.5k
派生
566
平均合并
8 小时 16 分钟
30 天内合并 PR
1

描述

I have some git pre-commit hooks in my projects. If they fail after `git cz` is run, then I can either run `git cz` again, and fill everything again, or I can run it with `git cz --retry`, but in that case if the issue was with my commit message not being valid (against [commintlint](http://marionebl.github.io/commitlint/#/guides-use-prompt) for instance) it will just fail again.

It would be nice to have `git cz` be pre-filled with text from last try. So I could just come back and edit it then it would pass the second time.

I can imagine someone not knowing about `.git/COMMIT_EDITMSG` writting a nice commit message with a long description (describing a complex breaking change for example), and feeling devastated when they forgot something that breaks commintlint, and they think they lost their work. This doesn't happen with `git commit -m ""` because most people use their terminal history to recover the previous git commit command with their message.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。