Documentation
¶
Overview ¶
Package forgerepo says whether two repository addresses name one repository, and whether a remote's every address names the repository the forge client resolves. It is the one comparison abcd makes of repository URLs: `abcd land` (internal/core/landing) holds its push and its pull request to it, and the sweep (internal/core/sweep) holds its deletes on origin and its forge calls to it.
A key is a URL's comparable form, so an https and an ssh address of one repository, or two spellings that differ in a user, a default port, a trailing slash, a .git suffix or case on a host, compare equal. It reads only the text it is given: it runs nothing and resolves no host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Key ¶
Key is a repository URL's comparable form, "host[:port]:/path" with the host and (on a host) the path lower-cased, any user, trailing slash and .git suffix dropped, and a port kept unless it is the scheme's own; a local path or file URL has an empty host. "" when the URL cannot be read.
func Keys ¶
Keys is the set of keys of the forge's own addresses for one repository (`gh repo view --json url,sshUrl`), leaving out any that cannot be read.
Types ¶
This section is empty.