216
215
def get_proposer(self, source_branch, target_branch):
217
216
return GitHubMergeProposalBuilder(self.gh, source_branch, target_branch)
220
219
(source_owner, source_repo_name, source_branch_name) = (
221
220
parse_github_url(source_branch))
222
221
(target_owner, target_repo_name, target_branch_name) = (
223
222
parse_github_url(target_branch))
225
225
for pull in target_repo.get_pulls(head=target_branch_name):
226
226
if pull.head.ref != source_branch_name:
228
228
if (pull.head.repo.owner.login != source_owner or
229
229
pull.head.repo.name != source_repo_name):