lib/GitHub/Receiver/Repositories/Commits.php
public function listCommits(string $sha = AbstractApi::BRANCH_MASTER, string $path = null, string $author = null,
                                string $since = null, string $until = null): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/commits?:args',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), http_build_query([
                "sha"    => $sha,
                "path"   => $path,
                "author" => $author,
                "since"  => $since,
                "until"  => $until
            ])));
    }
public function listCommits(string $sha = AbstractApi::BRANCH_MASTER, string $path = null, string $author = null,
                                string $since = null, string $until = null): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/commits?:args',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), http_build_query([
                "sha"    => $sha,
                "path"   => $path,
                "author" => $author,
                "since"  => $since,
                "until"  => $until
            ])));
    }
public function listCommits ( string $ sha = AbstractApi :: BRANCH_MASTER , string $ path = null , string $ author = null , string $ since = null , string $ until = null ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/commits?:args' , $ this -> getRepositories ( ) -> getOwner ( ) , $ this -> getRepositories ( ) -> getRepo ( ) , http_build_query ( [ "sha" => $ sha , "path" => $ path , "author" => $ author , "since" => $ since , "until" => $ until ] ) ) ) ; }
List commits on a repository

@link https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository

@param string      $sha
@param string|null $path
@param string|null $author
@param string|null $since
@param string|null $until

@return array
List commits on a repository