Back to the "Deployment API" | Back to the navigation
Provides information about deployment branch policies. Wraps GitHub Deployment branch policies API.
$policies = $client->deployment()->policies()->all('KnpLabs', 'php-github-api', 'production');
$policy = $client->deployment()->policies()->show('KnpLabs', 'php-github-api', 'production', $branchPolicyId);
$data = $client->deployment()->policies()->create('KnpLabs', 'php-github-api', 'production', [
'name' => 'name'
]);
$data = $client->deployment()->policies()->update('KnpLabs', 'php-github-api', 'production', $branchPolicyId, [
'name' => 'name'
]);
$policy = $client->deployment()->policies()->remove('KnpLabs', 'php-github-api', 'production', $branchPolicyId);