Note
See the official GitHub API v2 documentation for commits.
Commit container.
(If present) Datastructure representing what’s been modified since last commit.
Commit message.
Author metadata (dict with name/email.)
Date authored.
Comitter metadata (dict with name/email.)
Tree SHA for this commit.
Commit ID.
(if present) Datastructure representing what’s been removed since last commit.
Canonical URL for this commit.
Date committed.
List of parents for this commit.
(If present) Datastructure representing what’s been added since last commit.
GitHub API commits functionality.
>>> 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")