Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 793 Bytes

File metadata and controls

27 lines (18 loc) · 793 Bytes

Issues / Comments API

Back to the "Issues API" | Back to the navigation

Wraps GitHub Issue Comments API.

List an issue comments

$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.

Add a comment on an issue

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.