You are here

public function Github_Api_Issue::update in Bibliography Module 7.2

Update issue informations by username, repo and issue number. Requires authentication. http://develop.github.com/p/issues.html#edit_existing_issues

Parameters

string $username the username:

string $repo the repo:

string $issueNumber the issue number:

array $data key=>value user attributes to update.: key can be title or body

Return value

array information about the issue

File

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

Class

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

Code

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