(baseRepo ghrepo.Interface, pr *api.PullRequest, opts *MergeOptions)
| 805 | } |
| 806 | |
| 807 | func remoteForMergeConflictResolution(baseRepo ghrepo.Interface, pr *api.PullRequest, opts *MergeOptions) *ghContext.Remote { |
| 808 | if !mergeConflictStatus(pr.MergeStateStatus) || !opts.CanDeleteLocalBranch { |
| 809 | return nil |
| 810 | } |
| 811 | remotes, err := opts.Remotes() |
| 812 | if err != nil { |
| 813 | return nil |
| 814 | } |
| 815 | remote, err := remotes.FindByRepo(baseRepo.RepoOwner(), baseRepo.RepoName()) |
| 816 | if err != nil { |
| 817 | return nil |
| 818 | } |
| 819 | return remote |
| 820 | } |
| 821 | |
| 822 | func mergeConflictStatus(status string) bool { |
| 823 | return status == MergeStateStatusDirty |
no test coverage detected