.. module:: github2.commits
Note
See the official GitHub API v2 documentation for commits.
.. autoclass:: Commit(type)
.. autoclass:: Commits(type)
>>> commits = github.commits.list("mojombo/grit", "master")
By default the first page of results is returned, you can return further results
with the page parameter:
>>> commits = github.commits.list("mojombo/grit", "master", page=2)
>>> commits = github.commits.list("mojombo/grit", "master", ... file="grit.gemspec")
>>> commit = github.commits.show("mojombo/grit", ... sha="5071bf9fbfb81778c456d62e111440fdc776f76c")