get_commit

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

Get last commit hash for the given repo.

Parameters:
  • org – The GitHub organization or owner

  • repo – The GitHub repository name

  • provider – The method for getting the most recent commit

Returns:

A commit hash’s hex digest as a string

Raises:

ValueError – if an invalid provider is given