class Dependabot::Clients::Azure
def pull_requests(source_branch, target_branch)
def pull_requests(source_branch, target_branch) response = get(T.must(source.api_endpoint) + source.organization + "/" + source.project + "/_apis/git/repositories/" + source.unscoped_repo + "/pullrequests?searchCriteria.status=all" \ "&searchCriteria.sourceRefName=refs/heads/" + source_branch + "&searchCriteria.targetRefName=refs/heads/" + target_branch) JSON.parse(response.body).fetch("value") end