commitizen / commitizen/cz-cli

Interactive --retry (prefill with previous attempt information)

Đang mở
#485 8 bình luận 14 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
17.5k
Fork
566
Merge trung bình
8 giờ 16 phút
Pull request đã merge (30 ngày)
1

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.