Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 1

API equivalent of `git branch --no-merged master`

Hey folks,

 

Does the REST API have an easy way to list all branches that are not merged into a certain branch? Same as `git branch --no-merged master` on the command line..

 

I understand I can [list all branches](https://developer.github.com/v3/repos/branches/#list-branches) and then [compare](https://developer.github.com/v3/repos/commits/#compare-two-commits) the head commit of each one of them but it's not exactly the same and also requires as many extra API calls as many branches I have.

 

Thanks!