MCPcopy
hub / github.com/cli/cli / NewPullRequestFindRefsResolver

Function NewPullRequestFindRefsResolver

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

Source from the content-addressed store, hash-verified

123}
124
125func NewPullRequestFindRefsResolver(gitConfigClient GitConfigClient, remotesFn func() (ghContext.Remotes, error)) PullRequestFindRefsResolver {
126 return PullRequestFindRefsResolver{
127 GitConfigClient: gitConfigClient,
128 RemoteNameToRepoFn: newRemoteNameToRepoFn(remotesFn),
129 }
130}
131
132// ResolvePullRequestRefs takes a base repository, a base branch name and a local branch name and uses the git configuration to
133// determine the head repository and remote branch name. If we were unable to determine this from git, we default the head

Callers 3

statusRunFunction · 0.92
FindMethod · 0.85

Calls 1

newRemoteNameToRepoFnFunction · 0.85

Tested by 1