# pinakighatak/ado2gh-ado-pipeline architecture

> Architecture diagram of the GitHub repository pinakighatak/ado2gh-ado-pipeline, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pinakighatak/ado2gh-ado-pipeline
- Repository: https://github.com/pinakighatak/ado2gh-ado-pipeline
- Video tour (about a minute): https://gitdiagram.com/pinakighatak/ado2gh-ado-pipeline/video

## Overview

This repository provides a staged, self-service Azure DevOps-to-GitHub Enterprise migration workflow. Teams generate repository and pipeline inventories, check readiness, approve the migration, migrate repositories, validate successful migrations, rewire pipelines, and integrate Azure Boards. The README documents these stage relationships and script mappings; source excerpts were not available, so internal calls beyond those documented are not asserted. The tree also contains migration helpers and configuration, but their runtime interactions are not established by the available evidence.

Main entry points: [`pipelines/ado2gh-migration.yml`](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/pipelines/ado2gh-migration.yml) (Migration pipeline), [`scripts/bash/2_migration.sh`](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/2_migration.sh) (Repository migration), [`pipelines/GetInventory.yml`](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/pipelines/GetInventory.yml) (Inventory pipeline), [`scripts/bash/4_rewire_pipeline.sh`](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/4_rewire_pipeline.sh) (Pipeline rewiring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Orchestration"]
  node_inventory["Inventory pipeline<br/>[GetInventory.yml]"]
  node_migration_pipeline["Migration pipeline"]
  node_repo_list["Repository inventory<br/>[repos.csv]"]
  node_pipeline_list["Pipeline inventory<br/>[pipelines.csv]"]
end

subgraph group_readiness["Readiness"]
  node_prereq_check["Prerequisite checks"]
  node_precheck["Pre-migration check"]
end

subgraph group_migration["Migration"]
  node_migration["Repository migration<br/>[2_migration.sh]"]
  node_status_artifact["Migration status<br/>[2_migration.sh]"]
  node_validation["Migration validation"]
  node_helpers["Migration helpers"]
  node_config["Migration configuration"]
end

subgraph group_integration["Post-migration"]
  node_rewiring["Pipeline rewiring"]
  node_boards["Boards integration"]
end

node_team(("Product team"))
node_ado["Azure DevOps"]
node_github["GitHub Enterprise"]
node_approval(("Manual approval"))

node_team -->|"generates inventory"| node_inventory
node_inventory -->|"produces"| node_repo_list
node_inventory -->|"produces"| node_pipeline_list
node_team -->|"runs"| node_migration_pipeline
node_migration_pipeline -->|"validates inputs"| node_prereq_check
node_migration_pipeline -->|"runs"| node_precheck
node_precheck -->|"requests review"| node_approval
node_approval -->|"authorizes"| node_migration
node_migration_pipeline -->|"runs"| node_migration
node_migration -->|"migrates from"| node_ado
node_migration -->|"migrates to"| node_github
node_migration -->|"publishes"| node_status_artifact
node_migration_pipeline -->|"runs"| node_validation
node_status_artifact -->|"filters repositories"| node_validation
node_migration_pipeline -->|"runs"| node_rewiring
node_status_artifact -->|"filters repositories"| node_rewiring
node_pipeline_list -->|"provides definitions"| node_rewiring
node_migration_pipeline -->|"runs"| node_boards

click node_inventory "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/pipelines/GetInventory.yml"
click node_migration_pipeline "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/pipelines/ado2gh-migration.yml"
click node_repo_list "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/repos.csv"
click node_pipeline_list "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/pipelines.csv"
click node_prereq_check "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/pipelines/ado2gh-migration.yml"
click node_precheck "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/1_pr_pipeline_check.sh"
click node_migration "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/2_migration.sh"
click node_status_artifact "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/2_migration.sh"
click node_validation "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/3_post_migration_validation.sh"
click node_rewiring "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/4_rewire_pipeline.sh"
click node_boards "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/5_boards_integration.sh"
click node_helpers "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/powershell/MigrationHelpers.psm1"
click node_config "https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/powershell/migration-config.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_inventory,node_migration_pipeline,node_repo_list,node_pipeline_list toneBlue
class node_prereq_check,node_precheck toneAmber
class node_migration,node_status_artifact,node_validation,node_helpers,node_config toneMint
class node_rewiring,node_boards toneRose
class node_team,node_ado,node_github,node_approval toneIndigo
```

## Components

### Orchestration

- [Inventory pipeline](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/pipelines/GetInventory.yml): `pipelines/GetInventory.yml`
- [Migration pipeline](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/pipelines/ado2gh-migration.yml): `pipelines/ado2gh-migration.yml`
- [Repository inventory](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/repos.csv): `scripts/bash/repos.csv`
- [Pipeline inventory](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/pipelines.csv): `scripts/bash/pipelines.csv`

### Readiness

- [Prerequisite checks](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/pipelines/ado2gh-migration.yml): `pipelines/ado2gh-migration.yml`
- [Pre-migration check](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/1_pr_pipeline_check.sh): `scripts/bash/1_pr_pipeline_check.sh`

### Migration

- [Repository migration](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/2_migration.sh): `scripts/bash/2_migration.sh`
- [Migration status](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/2_migration.sh): `scripts/bash/2_migration.sh`
- [Migration validation](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/3_post_migration_validation.sh): `scripts/bash/3_post_migration_validation.sh`
- [Migration helpers](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/powershell/MigrationHelpers.psm1): `scripts/powershell/MigrationHelpers.psm1`
- [Migration configuration](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/powershell/migration-config.json): `scripts/powershell/migration-config.json`

### Post-migration

- [Pipeline rewiring](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/4_rewire_pipeline.sh): `scripts/bash/4_rewire_pipeline.sh`
- [Boards integration](https://github.com/pinakighatak/ado2gh-ado-pipeline/blob/main/scripts/bash/5_boards_integration.sh): `scripts/bash/5_boards_integration.sh`

### Other components

- **Product team**
- **Azure DevOps**
- **GitHub Enterprise**
- **Manual approval**

## Connections

- Product team → Inventory pipeline: generates inventory (evidence: `README.md`)
- Inventory pipeline → Repository inventory: produces (evidence: `README.md`)
- Inventory pipeline → Pipeline inventory: produces (evidence: `README.md`)
- Product team → Migration pipeline: runs (evidence: `README.md`)
- Migration pipeline → Prerequisite checks: validates inputs (evidence: `README.md`)
- Migration pipeline → Pre-migration check: runs (evidence: `README.md`)
- Pre-migration check → Manual approval: requests review (evidence: `README.md`)
- Manual approval → Repository migration: authorizes (evidence: `README.md`)
- Migration pipeline → Repository migration: runs (evidence: `README.md`)
- Repository migration → Azure DevOps: migrates from (evidence: `README.md`)
- Repository migration → GitHub Enterprise: migrates to (evidence: `README.md`)
- Repository migration → Migration status: publishes (evidence: `README.md`)
- Migration pipeline → Migration validation: runs (evidence: `README.md`)
- Migration status → Migration validation: filters repositories (evidence: `README.md`)
- Migration pipeline → Pipeline rewiring: runs (evidence: `README.md`)
- Migration status → Pipeline rewiring: filters repositories (evidence: `README.md`)
- Pipeline inventory → Pipeline rewiring: provides definitions (evidence: `README.md`)
- Migration pipeline → Boards integration: runs (evidence: `README.md`)
