capabilities.work

List users allowed to push to a branch

One step with GitHub. We can help you get access.

Look something up

List users allowed to push to a branch

with GitHub · Software Construction Management

Use GitHub: its GitHub v3 REST Repos API lets you list users allowed to push to a branch in a single step (GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users). capabilities.work can help you get signed up and connected.

  • Which individual people can push to this protected branch?
  • Am I personally on the push allowlist for a restricted branch?
Say it to your AI assistant
  • List the users with push access to {branch} in {owner}/{repo}.
  • Show which individual people may push to protected branch {branch} of {owner}/{repo}.
For your developer

GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users in GitHub v3 REST Repos API. Full spec on APIs.io.