Expand description
Version-control helpers shared across domains — the neutral home for git remote/URL parsing that both the readiness audit and the release coordinator depend on.
Kept out of any single domain module so the dependency runs one way (each
consumer → vcs) rather than one domain reaching into another’s internals.
Functions§
- parse_
github_ slug - Parse
owner/repoout of a GitHub remote URL — the SSH (git@github.com:o/r,ssh://git@github.com/o/r), HTTPS, andgit://forms.Nonefor a non-GitHub host or an unrecognizable URL. The parser anchors on a known host prefix (never a barefind), so a lookalike host is never accepted; a wrong parse would in any case only yield a failedgh api⇒unknown, never a falseAbsent.