Github API: how to view open commits on a specific branch?

I am looking for functionality in the github api, to see if there are still open commits on specific branch.

With open commits, I mean all commits that aren’t yet merged with the default branch.

I tried to use the “list branches” api (https://developer.github.com/v3/repos/branches/#list-branches), but this doesn’t return any information on commits.

Note: I posted the same question on stackoverflow: https://stackoverflow.com/questions/51656981/github-api-how-to-view-open-commits-on-a-specific-branch

Hi @cremersstijn,

Thanks for being part of the GitHub Community Forum! We’re glad you’re here.
For this specific topic, I suggest checking out our Platform Community, they specialize in API questions.

Cheers!

my apologies! I did not mean to reply to this post