version_bump/repo_url
Pure parsing of git remote URLs into host + owner + repo.
Shared by the forge plugins: github only needs owner/repo, while
forgejo also needs the host so it can derive the API base URL of a
self-hosted instance. Handles the common remote forms:
https://host/owner/repo.git(alsohttp://, optional:port)git@host:owner/repo.git(scp-like)ssh://git@host/owner/repo.gitgit://host/owner/repo.git- any of the above wrapped in a
git+prefix
The trailing .git suffix and trailing slashes are stripped; extra path
segments after the repository name are ignored.