Example #1
0
function showRepoCommits(AABTest\Github\AccessResponse $accessResponse, $username, $repo)
{
    $api = new \AABTest\GithubAPI\GithubAPI(GITHUB_USER_AGENT);
    $command = $api->listRepoCommits('token ' . $accessResponse->accessToken, $username, $repo);
    $command->setAuthor('Danack');
    $commits = $command->execute();
    displayCommits($commits);
    $response = $command->getResponse();
    displayAndSaveLinks($response);
}