List teams allowed to push to a branch
One step with GitHub. We can help you get access.
Look something up
List teams allowed to push to a branch
with GitHub · Software Construction Management
Use GitHub: its GitHub v3 REST Repos API lets you list teams allowed to push to a branch in a single step (GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams). capabilities.work can help you get signed up and connected.
- Which teams can push to this protected branch?
- Is my team on the push allowlist for the release branch?
Say it to your AI assistant
- List the teams with push access to {branch} in {owner}/{repo}.
- Show which teams may push to protected branch {branch} of {owner}/{repo}.
For your developer
GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams in GitHub v3 REST Repos API. Full spec on APIs.io.