def find_merge_commit_in_prs(needle, prs):
    """Find the merge commit `needle` in the list of `prs`

    If found, returns the pr the merge commit comes from. If not found, return
    None
    """
    for pr in prs[::-1]:
        if pr['merge_commit'] is not None:
            if pr['merge_commit']['hash'] == needle[1][:12]:
                return pr
    return None