Skip to main content

github_api_base_with_config

Function github_api_base_with_config 

Source
pub fn github_api_base_with_config<E: EnvSource + ?Sized>(
    github_urls: Option<&GitHubUrlsConfig>,
    env: &E,
) -> String
Expand description

Like github_api_base, but honoring a configured github_urls.api (GitHub Enterprise Server) first.

Preflight probes and milestone operations must contact the same host the release backend will (see build_octocrab_client): probing github.com for a repo that lives on a GHES host false-404s (Blocker for a release that would succeed), or worse, returns a verdict for an unrelated same-named public repo. Precedence: github_urls.api > ANODIZER_GITHUB_API_BASE > https://api.github.com. Any trailing / is stripped, as in github_api_base.