Skip to content

precommit warns on main + instructions for fix #26171

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

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

story645
Copy link
Member

@story645 story645 commented Jun 23, 2023

Added a branch protect rule to the pre-commit so that it complains if you try to commit directly to main. I figure folks who really need to push to main also know how to work around it. based on convo in call w/ @greglucas

Not quite sure this is the best way to handle the error message but figure we need to give folks a fix.

Is a replacement for #26170 which I'm not sure how I accidentally created directly on the repo.

Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you managed to beat me to the PR.

@story645
Copy link
Member Author

😅 you're welcome to take over

@story645 story645 force-pushed the branch_protect branch 2 times, most recently from 1384342 to 28d6a26 Compare June 23, 2023 02:50
@story645
Copy link
Member Author

do not love that this is running away from me/growing in scope, but since it is are there any other branches that I should include? (like doc or whatever) or is main the only one that's a problem.

@story645
Copy link
Member Author

So this pr now has:
1: precommit hook with short message
2: action with longer message - not totally sure it works or should fail
3. updated docs about branches on main

@story645 story645 force-pushed the branch_protect branch 2 times, most recently from 8631d19 to 34d8fc3 Compare June 23, 2023 19:24
@story645 story645 force-pushed the branch_protect branch 2 times, most recently from 617c465 to df6331d Compare June 25, 2023 17:08
Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor corrections.

+ instructions for fix in docs

Co-authored-by: Greg Lucas <greg.m.lucas@gmail.com>

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
@QuLogic QuLogic merged commit 11a5d66 into matplotlib:main Jun 27, 2023
@QuLogic QuLogic added this to the v3.8.0 milestone Jun 27, 2023
@story645 story645 deleted the branch_protect branch October 6, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants