Restrict branch creation? #1798
brackendawson
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to discuss and possibly implement branch protection rules on Testify to restrict branches only to those which are releases.
In both Go Modules, and Go before modules (many of which still exist and import testify); a git branch is a de-facto release. For this reason it is considered good practice in many projects to disallow maintainers from pushing arbitrary branches to "origin" and instead require them to use a fork when opening pull requests. This is a practice that I have been following for many years now.
My proposal is to enable a branch ruleset for
*and not formasterwhich prevents creation of new branches. This would not affect existing branches which are still in use.Beta Was this translation helpful? Give feedback.
All reactions