You are here

public function Github_Api_Issue::getList in Bibliography Module 7.2

List issues by username, repo and state http://develop.github.com/p/issues.html#list_a_projects_issues

Parameters

string $username the username:

string $repo the repo:

string $state the issue state, can be open or closed:

Return value

array list of issues found

File

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

Class

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

Code

public function getList($username, $repo, $state = 'open') {
  $response = $this
    ->get('issues/list/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($state));
  return $response['issues'];
}