capabilities.work

Revoke a user's push access to a branch

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

Get something done

Revoke a user's push access to a branch

with GitHub · Software Construction Management

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

  • Can I stop a specific person from pushing to a protected branch?
  • How do I take someone off a restricted branch's push list?
Say it to your AI assistant
  • Remove users from the push allowlist of {branch} in {owner}/{repo}.
  • Revoke an individual's push access on protected branch {branch} of {owner}/{repo}.
For your developer

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