Skip to main content

parse_remote_url

Function parse_remote_url 

Source
pub fn parse_remote_url(
    url: &str,
) -> Result<(String, String, String), ReleaseError>
Expand description

Extract (hostname, owner, repo) from a git remote URL. Supports SSH (git@hostname:owner/repo.git) and HTTPS (https://hostname/owner/repo.git).