commitizen / commitizen/cz-cli

Interactive --retry (prefill with previous attempt information)

オープン
#485 コメント 8 件 リアクション 14 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
17.5k
フォーク
566
平均マージ
8時間 16分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。