public function Github_Api_Issue::addComment in Bibliography Module 7.2
Add a comment to the issue by username, repo and issue number http://develop.github.com/p/issues.html#comment_on_issues
Parameters
string $username the username:
string $repo the repo:
string $issueNumber the issue number:
string $comment the comment body:
Return value
array the created comment
File
- modules/
CiteProc/ Github/ Api/ Issue.php, line 173
Class
- Github_Api_Issue
- Listing issues, searching, editing and closing your projects issues.
Code
public function addComment($username, $repo, $issueNumber, $commentBody) {
$response = $this
->post('issues/comment/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($issueNumber), array(
'comment' => $commentBody,
));
return $response['comment'];
}