Closed nfelly closed 9 years ago
You can iterate the commits using:
$commits = $client->repos->commits->listCommitsOnRepository($owner, $repo);
foreach($commits as $commit)
{
/* @var $commit GitHubCommit */
$message = $commit->getCommit()->getMessage();
}
Or you can get directly the commit you need using:
$commit = $client->repos->commits->getSingleCommit($owner, $repo, $sha);
$message = $commit->getCommit()->getMessage();
That's awesome! Thank you very much.
Hello!
Just wondering if there is anyway to get the comment left when someone commits? Something like: $commit->getComment();
Thanks