Parse a GitHub repository shorthand or transport URL.
Accepted values include owner/name, github:owner/name, SCP-style SSH,
and git, ssh, http, or https GitHub URLs with an optional git+
prefix and terminal .git suffix. Owner and repository names intentionally
use a strict subset of GitHub's ASCII naming rules, including documented
length bounds, and percent-encoded input is rejected.
Parse a GitHub repository shorthand or transport URL.
Accepted values include
owner/name,github:owner/name, SCP-style SSH, andgit,ssh,http, orhttpsGitHub URLs with an optionalgit+prefix and terminal.gitsuffix. Owner and repository names intentionally use a strict subset of GitHub's ASCII naming rules, including documented length bounds, and percent-encoded input is rejected.Usage:
Output: