Back to the "Issues API" | Back to the navigation
Wraps GitHub Issue Comments API.
$comments = $client->api('issue')->comments()->all('KnpLabs', 'php-github-api', 4);List an issue comments by username, repo and issue number. Returns an array of issues.
Note: New comments are assigned to the authenticated user.
Requires authentication.
$client->api('issue')->comments()->create('KnpLabs', 'php-github-api', 4, array('body' => 'My new comment'));Add a comment to the issue by username, repo and issue number and array with comment data: body
and optionally title.