pub fn parse_github_slug(url: &str) -> Option<String>Expand description
Parse owner/repo out of a GitHub remote URL — the SSH (git@github.com:o/r,
ssh://git@github.com/o/r), HTTPS, and git:// forms. None for a
non-GitHub host or an unrecognizable URL. The parser anchors on a known host
prefix (never a bare find), so a lookalike host is never accepted; a wrong
parse would in any case only yield a failed gh api ⇒ unknown, never a
false Absent.