cz-cli: Ability to re-run a commit if it fails
Sometimes, when a pre_commit hook is configured, our commit will fail. It would be helpful to have a way to pass something like --retry so we won’t need to enter the message again.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 18 (18 by maintainers)
Commits related to this issue
- fix(cache): use lodash assign for better node 0.12 support Previously we used Object.assign, but for better node 0.12 support we can use _.assign. This also fixes a small wording change in some tests... — committed to by jimthedev 8 years ago
- docs(retry): Updated docs to include how to run --retry from a npm script To run git-cz with the --retry option from a npm script we need to do: 'npm run -- --retry' references #132 — committed to lricoy/cz-cli by lricoy 8 years ago
- docs(retry): Updated docs to show ways to run --retry There are multiple ways to pass the --retry option to a npm script. This change updates the docs to explain some of them. references #132 — committed to lricoy/cz-cli by lricoy 8 years ago
One thing to note. If using from a npm script defined on package.json. The syntax required double
--, as npm requires--for passing args tonpm runand the--retrybeing the argument itself:npm run commit -- --retrycommit only being an alias to git-cz on node-modules/bin