async def get_pr_for_commit(gh, sha):
    """Find the PR containing the specific commit hash."""
    prs_for_commit = await gh.getitem(
        f"/search/issues?q=type:pr+repo:python/cpython+sha:{sha}"
    )
    if prs_for_commit["total_count"] > 0:  # there should only be one
        return prs_for_commit["items"][0]
    return None