# File lib/git-review/provider/github.rb, line 43 def request_exists_for_branch?(upstream = false, branch = local.source_branch) target_repo = local.target_repo(upstream) client.pull_requests(target_repo).any? { |r| r.head.ref == branch } end