MCPcopy
hub / github.com/cli/cli / NewRemoteToRepoResolver

Function NewRemoteToRepoResolver

pkg/cmd/pr/shared/find_refs_resolution.go:248–252  ·  view source on GitHub ↗
(remotesFn func() (ghContext.Remotes, error))

Source from the content-addressed store, hash-verified

246}
247
248func NewRemoteToRepoResolver(remotesFn func() (ghContext.Remotes, error)) remoteToRepoResolver {
249 return remoteToRepoResolver{
250 remoteNameToRepo: newRemoteNameToRepoFn(remotesFn),
251 }
252}
253
254// resolve takes a remote and returns a repository representing it.
255func (r remoteToRepoResolver) resolve(remote remote) (ghrepo.Interface, error) {

Callers 3

NewCreateContextFunction · 0.92
stubRemoteToRepoResolverFunction · 0.85

Calls 1

newRemoteNameToRepoFnFunction · 0.85

Tested by 2

stubRemoteToRepoResolverFunction · 0.68