Knp\Bundle\KnpBundlesBundle\Git\Repo::getCommits PHP Method

getCommits() public method

public getCommits ( $nb = 12 )
    public function getCommits($nb = 12)
    {
        $commits = $this->getGitRepo()->getCommits($nb);
        foreach ($commits as $key => $commit) {
            $commits[$key]['url'] = $this->entity->getGithubUrl() . '/commit/' . $commit['id'];
        }
        return $commits;
    }