def get_pr_required_statuses(pr):
    """Gets a list off all of the required statuses for a PR to be merged."""
    statuses = pr.session.get(
        'https://api.github.com/repos/{}/{}/branches/{}/protection/'
        'required_status_checks/contexts'.format(
            pr.repository[0], pr.repository[1], pr.base.ref)).json()

    return statuses