Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/Github/Api/Repo.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ public function find($keyword, array $params)
return $this->get('legacy/repos/search/'.urlencode($keyword), array_merge(array('start_page' => 1), $params));
}

/**
* List all repositories for an organization
* @link http://developer.github.com/v3/repos/#list-organization-repositories
*
* @param string $organization the name of the organization
* @param array $params
*
* @return array list of organization repositories
*/
public function org($organization, array $params = array())
{
return $this->get('orgs/'.$organization.'/repos', array_merge(array('start_page' => 1), $params));
}

/**
* Get extended information about a repository by its username and repository name
* @link http://developer.github.com/v3/repos/
Expand Down