assignees.md
November 4, 2019 ยท View on GitHub
Issues / Assignees API
Back to the "Issues API" | Back to the navigation
Wraps GitHub Issue Assignees API.
List all available assignees
$assignees = $client->api('issue')->assignees()->listAvailable('KnpLabs', 'php-github-api');
Check if a user is an available assignee
$info = $client->api('issue')->assignees()->check('KnpLabs', 'php-github-api', 'test-user');
Add assignee
$client->api('issue')->assignees()->add('KnpLabs', 'php-github-api', 4, ['assignees' => ['test-user']]);
Remove assignee
$client->api('issue')->assignees()->remove('KnpLabs', 'php-github-api', 4, ['assignees' => ['test-user']]);