Make a call to /repos/:owner/:repo
and read the default_branch
property value – this is the name of the default branch. See example response here: http://developer.github.com/v3/repos/#get
Make a call to /repos/:owner/:repo
and read the default_branch
property value – this is the name of the default branch. See example response here: http://developer.github.com/v3/repos/#get