public function Github_Api_Commit::getBranchCommits in Bibliography Module 7.2
List commits by username, repo and branch http://develop.github.com/p/commits.html#listing_commits_on_a_branch
Parameters
string $username the username:
string $repo the repo:
string $branch the branch:
Return value
array list of users found
File
- modules/
CiteProc/ Github/ Api/ Commit.php, line 22
Class
- Github_Api_Commit
- Getting information on specific commits, the diffs they introduce, the files they've changed.
Code
public function getBranchCommits($username, $repo, $branch) {
$response = $this
->get('commits/list/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($branch));
return $response['commits'];
}