Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 762 Bytes

assignees.md

File metadata and controls

28 lines (19 loc) · 762 Bytes

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']]);