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

https://docs.gitlab.com/ee/api/merge_requests.html#list-project-merge-requests

curl -XGET --header “PRIVATE-TOKEN: XXX” “https://gitlab.com/api/v4/projects/6888/merge_requests

1 Like

Hey! This will get you all of the pull requests that have been opened on a particular repository: https://developer.github.com/v3/pulls/#list-pull-requests