How do I give pull request permission for a branch and revoke it for the other one

Hi! I wanna set my main/master branch to not allow pull requests to my contributors, so they have to do a pull request on a specific branch to an alpha feature/version development instead. I coudn’t find the setting here in anyways

I don’t think there is an option for that. But you could write an Actions workflow that either closes the request with a comment, or (nicer) retargets it to a more appropriate branch.


Thanks for answering!

Anyways, how do I edit my post? I wanna change that sentence to *specific branch for alpha …

There should be a pencil symbol near the bottom right of your post (second symbol left of “Reply”):


1 Like