Replace the users allowed to push to a branch
One step with GitHub. We can help you get access.
Get something done
Replace the users allowed to push to a branch
with GitHub · Software Construction Management
Use GitHub: its GitHub v3 REST Repos API lets you replace the users allowed to push to a branch in a single step (PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users). capabilities.work can help you get signed up and connected.
- Can I overwrite the full list of people who may push to a protected branch?
- If I set a new user list, do the people already allowed lose push access?
Say it to your AI assistant
- Replace the users allowed to push to {branch} in {owner}/{repo}.
- Reset the individual push allowlist on branch {branch} of {owner}/{repo} to a new set of people.
For your developer
PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users in GitHub v3 REST Repos API. Full spec on APIs.io.