-
-
Notifications
You must be signed in to change notification settings - Fork 709
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
Option to force run check-merge-conflict #300
Comments
This is a bit intentional, the hook is especially susceptible to false positives when run outside of a merge conflict due to matching things like this That said, you could easily write a
for example against
Might be able to get away with
|
Setting up a local hook will run it on developer's machine too. Our codebase is huge and we were not using pre-commits from the start. So, CI is setup to run using source and origin options instead of all files. So, I am just looking for a way to trigger this hook on our CI setup. |
Here's some previous ideas I've sketched out for running a different set of hooks in CI vs locally: pre-commit/pre-commit#765 (comment) basically two ideas: either using |
I wasn't aware of manual stage being added. |
Sure, would need a PR but I'd accept that :) Maybe |
check-merge-conflict only runs when it detects merge/rebase in progress.
This means it will always pass on CI setups.
Am not sure if this should be fixed specifically for check-merge-conflict or make a generic CI functionality available via pre-commit
The text was updated successfully, but these errors were encountered: