Skip to main content

build_provider

Function build_provider 

Source
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.