You are here

public function Github_Api_Organization::getPublicRepos in Bibliography Module 7.2

List all public repositories of any other organization http://develop.github.com/p/orgs.html

Parameters

string $name the organization name:

Return value

array the repositories

File

modules/CiteProc/Github/Api/Organization.php, line 58

Class

Github_Api_Organization
Searching organizations, getting organization information and managing authenticated organization account information.

Code

public function getPublicRepos($name) {
  $response = $this
    ->get('organizations/' . urlencode($name) . '/public_repositories');
  return $response['repositories'];
}