martinthomson / i-d-template

A template for IETF internet draft git repositories
Other
208 stars 182 forks source link

Make call to GitHub API for default branch. #232

Closed Bren2010 closed 4 years ago

Bren2010 commented 4 years ago

I noticed that in the call here, DEFAULT_BRANCH wasn't set, which caused all the arguments to that call to get shifted over by one. It wasn't getting set because there was an error being reported in the default-branch.sh script, because the repo has no remotes when the script is run in a GitHub Action.

This PR changes the script to call the GitHub API to get the default branch.