You are here

public function Github_Api_Commit::getCommit in Bibliography Module 7.2

Show a specific commit http://develop.github.com/p/commits.html#showing_a_specific_commit

Parameters

string $username the username:

string $repo the repo:

string $sha the commit sha:

File

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

Class

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

Code

public function getCommit($username, $repo, $sha) {
  $response = $this
    ->get('commits/show/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($sha));
  return $response['commit'];
}