gatelineAPI reference
  • owner/repo when a remote URL points at github.com, else null. The URL is read by parseOriginUrl, the one parser of origin URLs (#494), so every form it accepts — https, ssh with or without a port, scp-like — is accepted here too. Only github.com itself answers: a GitHub Enterprise host cannot be told apart from any other git host by its URL.

    Parameters

    • url: string

    Returns null | GitHubRepo