Check if the commit SHA is linked to a PR

I have been trying to figure this out and see if Github Cli has this service.

I have a list of commit SHAs to check. In a given commit SHA let’s say 123ab45, I want to see if the commit is linked to a PR in the branch.

My question is that is there any gh command that can check it out since I could not find it in the manual page? Thanks so much

What exactly do you mean by the commit being “linked to” the PR? Do you mean whether the commit is part of the PR branch, or something else?

This post was flagged by the community and is temporarily hidden.

This post was flagged by the community and is temporarily hidden.