You are here

public function Github_Api_Commit::getFileCommits in Bibliography Module 7.2

List commits by username, repo, branch and path http://develop.github.com/p/commits.html#listing_commits_for_a_file

Parameters

string $username the username:

string $repo the repo:

string $branch the branch:

string $path the path:

Return value

array list of users found

File

modules/CiteProc/Github/Api/Commit.php, line 39

Class

Github_Api_Commit
Getting information on specific commits, the diffs they introduce, the files they've changed.

Code

public function getFileCommits($username, $repo, $branch, $path) {
  $response = $this
    ->get('commits/list/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($branch) . '/' . urlencode($path));
  return $response['commits'];
}