Revoke a team's push access to a branch
One step with GitHub. We can help you get access.
Get something done
Revoke a team's push access to a branch
with GitHub · Software Construction Management
Use GitHub: its GitHub v3 REST Repos API lets you revoke a team's push access to a branch in a single step (DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams). capabilities.work can help you get signed up and connected.
- Can I stop one team from pushing to a protected branch?
- How do I take a team off a restricted branch's push list?
Say it to your AI assistant
- Remove teams from the push allowlist of {branch} in {owner}/{repo}.
- Revoke a team's push access on protected branch {branch} of {owner}/{repo}.
For your developer
DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams in GitHub v3 REST Repos API. Full spec on APIs.io.