Skip to main content

parse_project_url

Function parse_project_url 

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

Parse a GitLab project URL into (base_url, project_path).

Example: https://gitlab.com/CentOS/Hyperscale/rpms/perf returns ("https://gitlab.com", "CentOS/Hyperscale/rpms/perf")