JGithubPackageRepositoriesCommits
class JGithubPackageRepositoriesCommits extends JGithubPackage
GitHub API Repositories Commits class for the Joomla Platform.
Methods
array
getList(
string $user,
string $repo,
string $sha = '',
string $path = '',
string $author = '',
JDate $since = null,
JDate $until = null)
Method to list commits for a repository.
array
get(
string $user,
string $repo,
string $sha)
Method to get a single commit for a repository.
array
compare(
string $user,
string $repo,
string $base,
string $head)
Method to get a diff for two commits.
Details
array
getList(
string $user,
string $repo,
string $sha = '',
string $path = '',
string $author = '',
JDate $since = null,
JDate $until = null)
Method to list commits for a repository.
A special note on pagination: Due to the way Git works, commits are paginated based on SHA instead of page number. Please follow the link headers as outlined in the pagination overview instead of constructing page links yourself.