Skip to main content

fetch_github_release

Function fetch_github_release 

Source
pub fn fetch_github_release(
    api_base: &str,
    repo: &str,
    tag: &str,
    token: Option<&str>,
) -> Result<GitHubRelease, GitHubError>
Expand description

Fetch the one release tagged tag, by address rather than by listing.

The listing is a single page of a hundred, which is every release only for a repository that has not made its hundred-and-first. A caller that already knows the tag should not depend on how far back it is.