List projects from ADO

Overview

Using the projects API in ADO, list all projects from an ADO. We have a couple options for the process

  • Option 1: Consolidate ADO projects where an ADO project has a single repo
for project in projects
   if project.repos > 1
      store project as GitLab group
   else
      get repo
      store repo as GitLab project
      do not store ADO project

Option 1 simplifies the overall structure in GitLab

  • Option 2: List all ADO projects regardless of the number of repos it contains
for project in projects
   store project as GitLab group

Option 2 is a simpler implementation but will result in a lot of subgroups with a single repo in it

Tasks

  • Update docs if needed (workflow, runbooks, README, migration metrics, etc.)

Acceptance Criteria

  • Existing UTs pass locally
  • 100% code coverage on new code

@gitlab-org/professional-services-automation/tools/migration

Edited by Michael Leopard