Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return 1 if any file is fixed #52

Closed
josejulio opened this issue Dec 11, 2018 · 1 comment
Closed

Return 1 if any file is fixed #52

josejulio opened this issue Dec 11, 2018 · 1 comment

Comments

@josejulio
Copy link

In my precommit workflow, i would like to fail the commit if any file has to be fixed.

  "precommit": "yarn pretty-quick --no-restage"

Currently if there is any file is fixed, it will commit, but i want to abort the current commit.

josejulio added a commit to josejulio/pretty-quick that referenced this issue Dec 12, 2018
josejulio added a commit to josejulio/pretty-quick that referenced this issue Dec 12, 2018
josejulio added a commit to josejulio/pretty-quick that referenced this issue Dec 13, 2018
jantimon pushed a commit to jantimon/pretty-quick that referenced this issue Jan 17, 2019
jantimon pushed a commit to jantimon/pretty-quick that referenced this issue Jan 17, 2019
jantimon pushed a commit to jantimon/pretty-quick that referenced this issue Jan 17, 2019
@azz azz closed this as completed Jan 17, 2019
@jorgeorpinel
Copy link

Hi! So --bail is just --no-restage but exiting with 1? So I should never need to use both options at the same time? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants