Skip to main content

head_sha

Function head_sha 

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

Resolves the repo’s default-branch HEAD sha via the API (works on private repos the installation covers).

§Errors

API failures with GitHub’s response body included.