| 43 | } |
| 44 | |
| 45 | type finder struct { |
| 46 | baseRepoFn func() (ghrepo.Interface, error) |
| 47 | branchFn func() (string, error) |
| 48 | httpClient func() (*http.Client, error) |
| 49 | remotesFn func() (ghContext.Remotes, error) |
| 50 | gitConfigClient GitConfigClient |
| 51 | progress progressIndicator |
| 52 | |
| 53 | baseRefRepo ghrepo.Interface |
| 54 | prNumber int |
| 55 | branchName string |
| 56 | } |
| 57 | |
| 58 | func NewFinder(factory *cmdutil.Factory) PRFinder { |
| 59 | if finderForRunCommandStyleTests != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected