Restrict merge / push access for a protected branch:

I can see there is a option to restrict push access to a team/users for a branch? but does this affect merge also?

How can we enable merge option for specific users/teams too?

1 Like

I’m not sure what exactly you’re trying to do. Can you give me an example of a scenario you’re wanting to achieve?

I have been trying to figure if the same thing is possible. Not only do I want to restrict which users can push directly to a branch. I also want to restrict who can create a pull request to a specific branch. 

DId you ever figure this out?

Git (and GitHub) is a collaboration tool. Therefore, there is no “out-of-the-box” solution to restrict people from opening pull requests.

You can restrict who can approve pull requests with CODEOWNERS, and you can restrict who can push to a branch with “branch protection”.