| 123 | } |
| 124 | |
| 125 | func 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 |