pull _get_pr_info into a module