title: Programmatically determine whether a branch is closed in a github project
body: <p>I'm using octokit .net to work with enterprise repositories and I'm stuck filtering out closed branches.</p>
  
  <p>I found a good open example: <a href="https://github.com/google/grr/branches" rel="nofollow">https://github.com/google/grr/branches</a><br>
  As you can see, "server-0.3-6" is closed "darrenbilby-patch-1" is merged, others are plain normal.</p>
  
  <p>However, in <a href="https://developer.github.com/v3/repos/branches/" rel="nofollow">https://developer.github.com/v3/repos/branches/</a> there's nothing that hints me in direction of checking whether a branch is closed/merged. I also failed to find examples for octokit.</p>
  
  <p>How do I?</p>