*/ class Commits extends AbstractApi { public function show($username, $repository, $sha) { return $this->get('repos/'.urlencode($username).'/'.urlencode($repository).'/commits/'.urlencode($sha)); } public function create($username, $repository, array $params) { if (!isset($params['message'], $params['tree'], $params['parents'])) { throw new MissingArgumentException(array('message', 'tree', 'parents')); } return $this->post('repos/'.urlencode($username).'/'.urlencode($repository).'/git/commits', $params); } }