pub fn api_base(
kind: ForgeKind,
git_url: &str,
api_url: Option<&str>,
) -> Result<String>Expand description
The API base for git_url: api_url when set; GitHub’s API for
github.com; else https://<host>/api/v1 (Gitea, Forgejo). A plain-HTTP
git URL needs an explicit api_url: a token is never sent in clear
unless someone wrote that down.