capabilities.work

Grant a user push access to a branch

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

Get something done

Grant a user push access to a branch

with GitHub · Software Construction Management

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

  • How do I let one more person push directly to a protected branch?
  • Can I add a user to the push allowlist without touching the existing ones?
Say it to your AI assistant
  • Add users to the push allowlist of {branch} in {owner}/{repo}.
  • Grant another person push access on protected branch {branch} of {owner}/{repo}.
For your developer

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