pub fn parse_repository(repo: &str) -> Result<(String, String), String>Expand description
Parse a repository string “owner/repo” into components.
§Examples
use github_rust::parse_repository;
let (owner, repo) = parse_repository("microsoft/vscode").unwrap();
assert_eq!(owner, "microsoft");
assert_eq!(repo, "vscode");
assert!(parse_repository("invalid").is_err());