Github Open Pull Request

Is there a git command to get a list of Open pull requests in a repository located in GitHub? And also is there a way to merge a pull request using git command?

No, because that is part of GitHub and not plain Git. You should be able to do it with the GitHub CLI though (but I haven’t tried that myself):

Yes. You can git fetch the repository holding the branch, and git merge it manually (and then push). See also: Checking out pull requests locally - GitHub Docs

The official answer is the gh command.

But, technically you could look (git ls-remote) for refs/pull/*/merge – this only lists commits that can be merged, so it will skip open PRs that can’t be merged.

There are lots of ways to merge branches/pull requests.

Hi all,

I found a way to get open PRs using Github API.
Refer to this