class Dependabot::Clients::Azure

def branch(branch_name)

def branch(branch_name)
  response = get(T.must(source.api_endpoint) +
    source.organization + "/" + source.project +
    "/_apis/git/repositories/" + source.unscoped_repo +
    "/refs?filter=heads/" + branch_name)
  JSON.parse(response.body).fetch("value").first
end