Commit

class github.Commit.Commit

This class represents Commits. The reference can be found here http://developer.github.com/v3/git/commits/

author
Type:github.NamedUser.NamedUser
comments_url
Type:string
commit
Type:github.GitCommit.GitCommit
committer
Type:github.NamedUser.NamedUser
files
Type:list of github.File.File
html_url
Type:string
parents
Type:list of github.Commit.Commit
sha
Type:string
stats
Type:github.CommitStats.CommitStats
url
Type:string
create_comment(body, line=NotSet, path=NotSet, position=NotSet)
Calls:

POST /repos/:owner/:repo/commits/:sha/comments

Parameters:
  • body – string
  • line – integer
  • path – string
  • position – integer
Return type:

github.CommitComment.CommitComment

create_status(state, target_url=NotSet, description=NotSet, context=NotSet)
Calls:

POST /repos/:owner/:repo/statuses/:sha

Parameters:
  • state – string
  • target_url – string
  • description – string
  • context – string
Return type:

github.CommitStatus.CommitStatus

get_comments()
Calls:GET /repos/:owner/:repo/commits/:sha/comments
Return type:github.PaginatedList.PaginatedList of github.CommitComment.CommitComment
get_statuses()
Calls:GET /repos/:owner/:repo/statuses/:ref
Return type:github.PaginatedList.PaginatedList of github.CommitStatus.CommitStatus
get_combined_status()
Calls:GET /repos/:owner/:repo/commits/:ref/status/
Return type:github.CommitCombinedStatus.CommitCombinedStatus