def find_commit_in_prs(needle, commit_data, prs):
    """Finds the commit `needle` PR in the commit_data dictionary

    If found, returns the pr the needle commit is in. If the commit was not
    part of the PRs in the dictionary, returns None.
    """
    for pr_id in commit_data:
        commits = commit_data[pr_id]
        for commit in commits:
            if commit['hash'] == needle[1]:
                pr = [pr for pr in prs if pr['id'] == pr_id][0]
                return pr
    return None