List self-hosted runners for a repository
March 27, 2021 ยท View on GitHub
Repo / Actions / Self Hosted Runners API
Back to the "Repos API" | Back to the navigation
List self-hosted runners for a repository
https://docs.github.com/en/rest/reference/actions#list-self-hosted-runners-for-a-repository
$runners = $client->api('repo')->selfHostedRunners()->all('KnpLabs', 'php-github-api');
Get a self-hosted runner for a repository
https://docs.github.com/en/rest/reference/actions#get-a-self-hosted-runner-for-a-repository
$runner = $client->api('repo')->selfHostedRunners()->show('KnpLabs', 'php-github-api', $runnerId);
Delete a self-hosted runner from a repository
https://docs.github.com/en/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository
$client->api('repo')->selfHostedRunners()->remove('KnpLabs', 'php-github-api', $runnerId);
List runner applications for a repository
https://docs.github.com/en/rest/reference/actions#list-runner-applications-for-a-repository
$applications = $client->api('repo')->selfHostedRunners()->applications('KnpLabs', 'php-github-api');