class Dependabot::Clients::Azure

def fetch_default_branch(_repo)

def fetch_default_branch(_repo)
  response = get(T.must(source.api_endpoint) +
    source.organization + "/" + source.project +
    "/_apis/git/repositories/" + source.unscoped_repo)
  JSON.parse(response.body).fetch("defaultBranch").gsub("refs/heads/", "")
end