public function Github_Api_Issue::getLabels in Bibliography Module 7.2
List all project labels by username and repo http://develop.github.com/p/issues.html#listing_labels
Parameters
string $username the username:
string $repo the repo:
Return value
array list of project labels
File
- modules/
CiteProc/ Github/ Api/ Issue.php, line 190
Class
- Github_Api_Issue
- Listing issues, searching, editing and closing your projects issues.
Code
public function getLabels($username, $repo) {
$response = $this
->get('issues/labels/' . urlencode($username) . '/' . urlencode($repo));
return $response['labels'];
}