class Dependabot::Clients::Azure
def update_ref(branch_name, old_commit, new_commit)
def update_ref(branch_name, old_commit, new_commit) content = [ { name: "refs/heads/" + branch_name, oldObjectId: old_commit, newObjectId: new_commit } ] response = post(T.must(source.api_endpoint) + source.organization + "/" + source.project + "/_apis/git/repositories/" + source.unscoped_repo + "/refs?api-version=5.0", content.to_json) JSON.parse(response.body).fetch("value").first end