Github API - Test Config

GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}
repos

Gets a deployment branch policy for an environment.

Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
Get a deployment branch policy

Arguments
key owner

owner [scalar]

The account owner of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key repo

repo [scalar]

The name of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key environment-name

environment-name [scalar]

The name of the environment.

API:
Github Open API
(version: 1.1.4)

key branch-policy-id

branch-policy-id [scalar]

The unique identifier of the branch policy.

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json deployment-branch-policy

deployment-branch-policy [object]

Details of a deployment branch policy.

Attributes
id integer

The unique identifier of the branch policy.

name string

The name pattern that branches must match in order to deploy to the environment.

node_id string

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)