get_commit

get_commit(org, repo, provider='git')[source]

Get last commit hash for the given repo.

Parameters:
  • org (str) – The GitHub organization or owner

  • repo (str) – The GitHub repository name

  • provider (str) – The method for getting the most recent commit

Raises:

ValueError – if an invalid provider is given

Return type:

str

Returns:

A commit hash’s hex digest as a string