title: GitHub API: Identify the branches that contain a given commit
body: <p>Given the SHA of a specific commit in my repo, I want to identify the branches which contain the commit, <strong>using the GitHub API</strong>. </p>
  
  <p>I'm aware I can do this locally using <code>git</code> directly in a variety of ways, including</p>
  
  <pre><code>git branch --contains &lt;commit&gt;
  </code></pre>
  
  <p>but this is for an integrated page that's pulling data from several platforms, so I really need to be using the API.</p>
  
  <p><a href="https://stackoverflow.com/questions/16517405/get-git-commits-by-branch-name-id-with-git-api">This question</a> had an accepted answer saying this wasn't possible back in 2013, but I'm hoping something along these lines has been added to the API since.</p>
  
  <p>Is anyone aware of a way to get this information short of querying for a list of ALL commits in the branches of interest and iterating through them to compare?</p>