Skip to content

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

Discussion options

You must be logged in to vote

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.

docs.github.com

Pulls - GitHub Docs

//docs.github.com/en/rest/reference/pulls

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants