Skip to main content

parse_github_repo

Function parse_github_repo 

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

Extracts (owner, repo) from a GitHub URL.

These forms are recognized:

https://github.com/owner/repo
https://github.com/owner/repo.git
https://github.com/owner/repo/
git+https://github.com/owner/repo