question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to re-run a commit if it fails

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
lricoycommented, Mar 11, 2016

One thing to note. If using from a npm script defined on package.json. The syntax required double --, as npm requires -- for passing args to npm run and the --retry being the argument itself:

npm run commit -- --retry

commit only being an alias to git-cz on node-modules/bin

  "scripts": {
      "commit": "git-cz",
  },
0reactions
lricoycommented, Mar 11, 2016

Cool @kentcdodds . Thanks for the tip 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add ability to re-run single jobs · Issue #432 · actions/runner
GitHub Actions will let you re-run all failed jobs, any individual job, and let you see the results of previous runs. This was...
Read more >
Github PR - when the build check fails, unable to rerun it ...
We have determined that this issue is not a bug. Please rerun the build from Builds tab -> find the failed build ->...
Read more >
How to undo a commit after a failed push? - git - Stack Overflow
You could've solved it by reverting the last commit using the command git reset HEAD~. which would undo your last commit and get...
Read more >
Ability to rerun a successful pipeline via "Retry" button - GitLab
Not only failed pipelines sometimes need a rerun but also successful ones: If your tests are unreliable and you are sceptical that the...
Read more >
Save time with partial re-runs in GitHub Actions
It is now possible to re-run only failed jobs or a single job in GitHub Actions workflows. Save time with partial re-runs in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found