class Dependabot::PullRequestCreator::Bitbucket

def pull_request_exists?

def pull_request_exists?
  bitbucket_client_for_source.pull_requests(
    source.repo,
    branch_name,
    source.branch || default_branch
  ).any?
end