public function commits($page = 0, $per_page = Api::PER_PAGE, $ref_name = null)
{
$data = $this->api('repo')->commits($this->id, $page, $per_page, $ref_name);
$commits = array();
foreach ($data as $commit) {
$commits[] = Commit::fromArray($this->getClient(), $this, $commit);
}
return $commits;
}