1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Azure DevOps から GitHub への移行は、Repos だけならツールが楽?

Posted at

背景

GitHub Copilot の Coding Agent を使うために、業務で利用している Repository 移行を検討した際のメモ

移行対象に注意

ADO からの移行の場合、GitHub Enterprise Importer では、pull request や一部のブランチ ポリシーを含む Git リポジトリのみが移行されます。

概要

検討 専用ツールがあって、簡単に行けそう。

前準備

Repoじゃなく、Organization のが必要 😂

環境変数設定

GH_PAT は classic PAT のみ

github.com 以外の場合、TARGET_API_URL の設定が必要
専用GitHub? :thinking:

Organization 毎の場合のスクリプト生成

Organization 内部の repos を全部移行する場合に、script 生成をするっぽい

gh ado2gh generate-script --ado-org SOURCE --github-org DESTINATION --output FILENAME

単一リポジトリ移行

gh ado2gh migrate-repo --ado-org SOURCE --ado-team-project TEAM-PROJECT --ado-repo CURRENT-NAME --github-org DESTINATION --github-repo NEW-NAME

  • 環境変数が設定してあれば、あとはこのコマンドでいける感じ

ツールバージョンが古くなってる場合の WARNING

[2025-07-18 22:05:31] [WARNING] You are running an old version of the ado2gh CLI [v1.16.0]. The latest version is v1.16.2.
[2025-07-18 22:05:31] [WARNING] Please update by running: gh extension upgrade ado2gh

PAT などが設定してない ERROR

[2025-07-18 22:07:03] [ERROR] GH_PAT environment variable is not set.

公式情報

Azure DevOps から GitHub Enterprise クラウドへの移行の概要 - GitHub Docs

あとがき

単一 Repo なら、Git のみでいけなくはないけれど
PR 記録が移行できるってとこがいい

幸い?、Issues は jira 使ってたのでなかったので問題なかったんですよね。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?