public function Github_Api_Repo::getRepoBranches in Bibliography Module 7.2
Get the branches of a repository http://develop.github.com/p/repo.html
Parameters
string $username the username:
string $repo the name of the repo:
Return value
array list of the repo branches
File
- modules/
CiteProc/ Github/ Api/ Repo.php, line 328
Class
- Github_Api_Repo
- Searching repositories, getting repository information and managing repository information for authenticated users.
Code
public function getRepoBranches($username, $repo) {
$response = $this
->get('repos/show/' . urlencode($username) . '/' . urlencode($repo) . '/branches');
return $response['branches'];
}