pub fn build_provider(
params: &GiteaParams,
token: Option<SecretString>,
) -> Result<Arc<dyn ReleaseProvider>, ProviderError>Expand description
Shared constructor. crate::codeberg calls this directly with
Codeberg’s hard-coded host.
§Errors
ProviderError::InvalidConfig for empty or http-prefixed hosts
and for missing owner/repo.