You are here

public function Github_Api_Issue::searchLabel in Bibliography Module 7.2

Search issues by label

Parameters

string $username the username:

string $repo the repo:

string $label the label to filter issues by:

Return value

array list of issues found

File

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

Class

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

Code

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