List self-hosted runners for an Organization
April 2, 2023 ยท View on GitHub
Organization / Actions / Self Hosted Runners API
Back to the "Organization API" | Back to the navigation
List self-hosted runners for an Organization
$runners = $client->api('organization')->runners()->all('KnpLabs');
Get a self-hosted runner for an Organization
$runner = $client->api('organization')->runners()->show('KnpLabs', $runnerId);
Delete a self-hosted runner from an Organization
$client->api('organization')->runners()->remove('KnpLabs', $runnerId);
List runner applications for an Organization
$applications = $client->api('organization')->selfHostedRunners()->applications('KnpLabs');
List of all runners with Pagination
$api = $github->api('organization')->runners();
$paginator = new Github\ResultPager($github);
$parameters = array('KnpLabs');
$runners = $paginator->fetchAll($api, 'all', $parameters);
do {
foreach ($runners['runners'] as $runner) {
// code
}
$runners = $paginator->fetchNext();
}
while($paginator->hasNext());