Protected Branches Improvements
github.com
Protected Branches Improvements
1–10 of 10 posts
Re: Protected Branches Improvements
#2Re: Protected Branches Improvements
#3Re: Protected Branches Improvements
#4I was crushed when they added support for protected branches but didn't include per-user permissions.
Re: Protected Branches Improvements
#5Re: Protected Branches Improvements
#6Re: Protected Branches Improvements
#7Strange you can't disallow pushing directly to master still.
Re: Protected Branches Improvements
#8Re: Protected Branches Improvements
#9Earlier quoted context omitted.
You can protect master; it disallows pushes.
I want people to be able to merge via the Github PR flow, just not push directly without going through a PR. That doesn't seem possible from the blog post?
The protected branch behavior has two components to it. The primary protection is to prevent force-push to a branch, usually master. That one is a no-brainer.
The secondary behavior (AFAIK) is to enforce exactly what you are looking for, where you have to push to a branch before merging to master. The only way to make that happen is to integrate tests - if your branch passes tests, it can be merged. In my "copious free time" I plan to build a test hook that always reports "OK" so that I can enable that behavior on all of my repos, and it should end up as two or three clicks to set it up.
Re: Protected Branches Improvements
#10I can't wait for this to land in the enterprise edition. We go through some pretty convoluted steps to maintain branch protection while still allowing issues to be edited.