GIT REST API - How to know a branch (dev) is merged into another branch (master) or not?

Does GitHub/GitLab support an API to let us know that a branch (Ex: develop) is merged into another branch (Ex: master) or not?

If yes, API will return the detail information of that merge.

1 Like

Hey, you should be able to use: https://developer.github.com/v3/pulls/#list-pull-requests and then look through the JSON object to see if the “merged-at” field is not equal to “null”.