pub fn pick_github_release(
api_base: &str,
repo: &str,
selector: &ReleaseSelector<'_>,
token: Option<&str>,
filter: Option<&dyn Fn(&GitHubRelease) -> bool>,
) -> Result<GitHubRelease, GitHubError>Expand description
Fetch repo’s releases and pick the one matching selector. Drafts are
always skipped; filter further narrows candidates first — use it when
the loader needs specific assets present, so Latest falls through to the
newest release that actually qualifies.