pub fn factory(
cfg: &ReleaseSourceConfig,
token: Option<SecretString>,
) -> Result<Arc<dyn ReleaseProvider>, ProviderError>Expand description
Construct a GitlabProvider from parsed config. Enforces HTTPS
unless the allow_insecure_base_url test escape hatch is set.
§Errors
ProviderError::InvalidConfig for empty or explicitly-http
hosts, missing owner or repo, or a reqwest build failure.