Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 12, 2025

Description

The ado2gh generate-script --rewire-pipelines command fails to recognize GitHub Enterprise Cloud with data residency service connections, which use type GitHubProximaPipelines instead of GitHub. This causes pipeline rewiring to fail despite valid service connections being configured.

Changes

  • AdoApi.cs: Extended GetTeamProjectGithubAppId to accept both GitHub and GitHubProximaPipelines service connection types
  • AdoApiTests.cs: Added test coverage for GitHubProximaPipelines service connections
  • RELEASENOTES.md: Documented the change

Before:

var endpoint = response.FirstOrDefault(x => 
    ((string)x["type"]).Equals("GitHub", StringComparison.OrdinalIgnoreCase) && 
    ((string)x["name"]).Equals(githubOrg, StringComparison.OrdinalIgnoreCase));

After:

var endpoint = response.FirstOrDefault(x =>
    (((string)x["type"]).Equals("GitHub", StringComparison.OrdinalIgnoreCase) ||
     ((string)x["type"]).Equals("GitHubProximaPipelines", StringComparison.OrdinalIgnoreCase)) &&
    ((string)x["name"]).Equals(githubOrg, StringComparison.OrdinalIgnoreCase));

Checklist

  • Did you write/update appropriate tests
  • Release notes updated (if appropriate)
  • Appropriate logging output
  • Issue linked
  • Docs updated (or issue created)
  • New package licenses are added to ThirdPartyNotices.txt (if applicable)
Original prompt

This section details on the original issue you should resolve

<issue_title>ado2gh: Support for ado2gh generate-script --rewire-pipelines for GitHub Enterprise cloud with data residency app</issue_title>
<issue_description>## Description

Running this command:

gh ado2gh generate-script --github-org <org> --ado-org ericsoderqvist --ado-team-project <project> --target-api-url https://api.<subdomain>.ghe.com --rewire-pipelines

Script for migrating repositories gets created, however the pipelines don't get rewired. The tool recognises the service connection but still give me this error in the logs:

[2025-11-11 10:48:01] [WARNING] CANNOT FIND GITHUB APP SERVICE CONNECTION IN ADO ORGANIZATION: ericsoderqvist. You must install the Pipelines app in GitHub and connect it to any Team Project in this ADO Org first.

From the code I can see that the value is hardcoded to look for service connections with type GitHub

Image

The type for the GitHub Enterprise cloud with data residency app is GitHubProximaPipelines

Could this be added so migrations from Azure DevOps to GitHub with data residency becomes more friction free? </issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…2gh rewire-pipelines

Co-authored-by: brianaj <2413532+brianaj@users.noreply.github.com>
Copilot AI changed the title [WIP] Support for rewire pipelines in ado2gh generate-script ado2gh: Support GitHubProximaPipelines service connections for --rewire-pipelines Nov 12, 2025
Copilot AI requested a review from brianaj November 12, 2025 18:28
Copilot finished work on behalf of brianaj November 12, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ado2gh: Support for ado2gh generate-script --rewire-pipelines for GitHub Enterprise cloud with data residency app

2 participants