in webhook-app/github_helper.py [0:0]
def get_pr_statuses(pr):
"""Gets a list of currently reported statuses for the commit."""
statuses = pr.session.get(
'https://api.github.com/repos/{}/{}/commits/{}/'
'statuses'.format(
pr.repository[0], pr.repository[1], pr.head.sha)).json()
return [status['context'] for status in statuses]