Skip to main content

default_branch

Function default_branch 

Source
pub fn default_branch(token: &str, repo: &str) -> Result<String, String>
Expand description

Resolves the repo’s default branch name.

§Errors

API failures with GitHub’s response body included.