In which we take the default branch from the github api rather than default it to "master"

why did I not do this sooner?
@turtlebender