Skip to main content

Module vcs

Module vcs 

Source
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/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 apiunknown, never a false Absent.