Get all merge requests for a project OR get branches merged directly into master branch

How could we get all merge requests for a project through GitHub API? I saw GitLab support a API similar what we want. Please help to share if you know.

Example: We have master, develop, feature1, feature2, bugfixing1, bugfixing2, etc …


  • develop, feature2, bugfixing1 merged into Master brach
  • Only develop merged into Master branch
  • No branch merged into the master branch

curl -XGET --header “PRIVATE-TOKEN: XXX” “

1 Like

Hey! This will get you all of the pull requests that have been opened on a particular repository: