Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 951 Bytes

environments.md

File metadata and controls

32 lines (22 loc) · 951 Bytes

Deployment / Environments API

Back to the "Deployment API" | Back to the navigation

Provides information about environments for a repository. Wraps GitHub Environments API.

Additional APIs:

List all environments.

$environments = $client->deployment()->environment()->all('KnpLabs', 'php-github-api');

Get one environment.

$environment = $client->deployment()->environment()->show('KnpLabs', 'php-github-api', $name);

Create or update environment.

$data = $client->deployment()->environment()->createOrUpdate('KnpLabs', 'php-github-api', $name);

Delete a existing environment.

$environment = $client->deployment()->environment()->remove('KnpLabs', 'php-github-api', $name);