Skip to main content

parse_github_repo_ref

Function parse_github_repo_ref 

Source
pub fn parse_github_repo_ref(input: &str) -> Result<GithubRepoRef, IndexError>
Expand description

Parse a user-supplied GitHub repo URL into a structured reference.

Accepts https://github.com/<owner>/<repo>[/...], the same with http://, or bare github.com/<owner>/<repo>[/...]. Anything else is rejected.