You are here

public function Github_Api_Issue::close in Bibliography Module 7.2

Close an existing issue by username, repo and issue number. Requires authentication. http://develop.github.com/p/issues.html#open_and_close_issues

Parameters

string $username the username:

string $repo the repo:

string $issueNumber the issue number:

Return value

array information about the issue

File

modules/CiteProc/Github/Api/Issue.php, line 106

Class

Github_Api_Issue
Listing issues, searching, editing and closing your projects issues.

Code

public function close($username, $repo, $issueNumber) {
  $response = $this
    ->post('issues/close/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($issueNumber));
  return $response['issue'];
}