MCPcopy
hub / github.com/cli/cli / Repository

Method Repository

pkg/extensions/official.go:19–21  ·  view source on GitHub ↗

Repository returns a ghrepo.Interface pinned to github.com so that GHES users install from github.com rather than their enterprise host.

()

Source from the content-addressed store, hash-verified

17// Repository returns a ghrepo.Interface pinned to github.com so that GHES
18// users install from github.com rather than their enterprise host.
19func (e *OfficialExtension) Repository() ghrepo.Interface {
20 return ghrepo.NewWithHost(e.Owner, e.Repo, "github.com")
21}
22
23// OfficialExtensions is the registry of GitHub-owned extensions that gh will
24// offer to install when the user invokes the corresponding command name.

Callers 2

officialExtensionStubRunFunction · 0.80

Calls 1

NewWithHostFunction · 0.92

Tested by 1