pyGitHub get_git_ref to get branch code example
Example: how to get description of repositories using pygithub api
g = Github(token)
g.get_repo('PyGithub/PyGithub').description
g = Github(token)
g.get_repo('PyGithub/PyGithub').description