Get a branch's protection rules
One step with GitHub. We can help you get access.
Look something up
Get a branch's protection rules
with GitHub · Software Construction Management
Use GitHub: its GitHub v3 REST Repos API lets you get a branch's protection rules in a single step (GET /repos/{owner}/{repo}/branches/{branch}/protection). capabilities.work can help you get signed up and connected.
- What protection rules are applied to my main branch?
- Can I see the full branch protection configuration in one call?
Say it to your AI assistant
- Get the full protection settings for {branch} in {owner}/{repo}.
- Show me every protection rule on branch {branch} of {owner}/{repo}.
For your developer
GET /repos/{owner}/{repo}/branches/{branch}/protection in GitHub v3 REST Repos API. Full spec on APIs.io.