capabilities.work

List an environment's branch policies

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

Look something up

List an environment's branch policies

with GitHub · Software Construction Management

Use GitHub: its GitHub v3 REST Repos API lets you list an environment's branch policies in a single step (GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies). capabilities.work can help you get signed up and connected.

  • Which branches are allowed to deploy to this environment?
  • Can I see the branch name patterns that gate an environment?
Say it to your AI assistant
  • List the deployment branch policies for {environment_name} in {owner}/{repo}.
  • Show which branch patterns may deploy to {environment_name} on {owner}/{repo}.
For your developer

GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies in GitHub v3 REST Repos API. Full spec on APIs.io.