pub fn default_branch(token: &str, repo: &str) -> Result<String, String>
Resolves the repo’s default branch name.
API failures with GitHub’s response body included.