-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Disallow commits to main via pre-commit-hooks #9248
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
Conversation
LGTM. I have a tiny bit of pause that someone just starting out in git is going to get really confused, but that's quite minor... |
(Also to confirm — this won't fail when run on main outside of a commit, in particular on CI?) |
I guess while this can be confusing, it is also partly a blessing: especially people just starting out will open a pull request from |
I think it will fail... The hook has no way of knowing why it was invoked. |
does This might still be useful, but I think for now this might be resolved by splitting up the branch protection rule. |
Now it does not anymore ;) |
Presumably this precludes us from using this? Same if someone run |
why? Now it only runs locally.
Not sure why this has to pass, or why someone would even run that. But hey, no strong feelings about this! |
[deleted — previous version was incorrect]
I often run some form of But very happy to defer to whatever others think. It's also easy to change — I would encourage more change and fewer vetos! |
Unless there are supporters, I would vote to close :'( |
main
from mistaken pushes #8209