parse_repository_metadata(
remote_url: str,
) -> RepositoryMetadata | None| Name | Type | Description |
|---|---|---|
remote_url* | str | The raw |
Derive repository attribution from an origin remote URL.
Handles both HTTPS (https://github.com/org/repo.git) and scp-style SSH
(git@github.com:org/repo.git) remotes, normalizing the URL to its
canonical https://<host>/<org>/<repo> form and stripping any embedded
credentials.