Skip to content

Use the manual hook stage if it exists in the list #597

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ThunderKey
Copy link

Since #415 seems not maintained anymore and it hinders our workflow I've created a simple workaround.

The issue is, that pre-commit without a --hook-stage uses the commit stage.
Now we have ["pre-push" "manual"] as the installStages defined.
Because of that it does not match the current compare and which lead to the the commit stage being used., which contains no tasks.

This change uses the manual stage if it exists anywhere in the installStages list.

Otherwise, installStages = [ "pre-push" "manual" ] will not use a --hook-stage and use the commit stage.
In pre-commit the commit stage is the default hook stage
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

Successfully merging this pull request may close these issues.

1 participant