Github API - Test Config

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

Creates a deployment branch policy for an environment.

You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the administration:write permission for the repository to use this endpoint.
Create 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)

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)