@@ -166,8 +166,8 @@ private async Task<string> GenerateSequentialScript(IDictionary<string, string>
166166 AppendLine ( content , Exec ( LockAdoRepoScript ( adoOrg , adoTeamProject , adoRepo . Name ) ) ) ;
167167 AppendLine ( content , Exec ( MigrateRepoScript ( adoOrg , adoTeamProject , adoRepo . Name , githubOrg , githubRepo , true , adoServerUrl , targetApiUrl ) ) ) ;
168168 AppendLine ( content , Exec ( DisableAdoRepoScript ( adoOrg , adoTeamProject , adoRepo . Name ) ) ) ;
169- AppendLine ( content , Exec ( AddMaintainersToGithubRepoScript ( adoTeamProject , githubOrg , githubRepo ) ) ) ;
170- AppendLine ( content , Exec ( AddAdminsToGithubRepoScript ( adoTeamProject , githubOrg , githubRepo ) ) ) ;
169+ AppendLine ( content , Exec ( AddMaintainersToGithubRepoScript ( adoTeamProject , githubOrg , githubRepo , targetApiUrl ) ) ) ;
170+ AppendLine ( content , Exec ( AddAdminsToGithubRepoScript ( adoTeamProject , githubOrg , githubRepo , targetApiUrl ) ) ) ;
171171 AppendLine ( content , Exec ( DownloadMigrationLogScript ( githubOrg , githubRepo , targetApiUrl ) ) ) ;
172172
173173 foreach ( var adoPipeline in await _adoInspectorService . GetPipelines ( adoOrg , adoTeamProject , adoRepo . Name ) )
@@ -275,8 +275,8 @@ private async Task<string> GenerateParallelScript(IDictionary<string, string> ap
275275 {
276276 AppendLine ( content , " ExecBatch @(" ) ;
277277 AppendLine ( content , " " + Wrap ( DisableAdoRepoScript ( adoOrg , adoTeamProject , adoRepo . Name ) ) ) ;
278- AppendLine ( content , " " + Wrap ( AddMaintainersToGithubRepoScript ( adoTeamProject , githubOrg , githubRepo ) ) ) ;
279- AppendLine ( content , " " + Wrap ( AddAdminsToGithubRepoScript ( adoTeamProject , githubOrg , githubRepo ) ) ) ;
278+ AppendLine ( content , " " + Wrap ( AddMaintainersToGithubRepoScript ( adoTeamProject , githubOrg , githubRepo , targetApiUrl ) ) ) ;
279+ AppendLine ( content , " " + Wrap ( AddAdminsToGithubRepoScript ( adoTeamProject , githubOrg , githubRepo , targetApiUrl ) ) ) ;
280280 AppendLine ( content , " " + Wrap ( DownloadMigrationLogScript ( githubOrg , githubRepo , targetApiUrl ) ) ) ;
281281
282282 appIds . TryGetValue ( adoOrg , out var appId ) ;
@@ -360,14 +360,14 @@ private string CreateGithubAdminsTeamScript(string adoTeamProject, string github
360360 ? $ "gh ado2gh create-team{ ( targetApiUrl . HasValue ( ) ? $ " --target-api-url \" { targetApiUrl } \" " : string . Empty ) } --github-org \" { githubOrg } \" --team-name \" { adoTeamProject . ReplaceInvalidCharactersWithDash ( ) } -Admins\" { ( _log . Verbose ? " --verbose" : string . Empty ) } { ( linkIdpGroups ? $ " --idp-group \" { adoTeamProject . ReplaceInvalidCharactersWithDash ( ) } -Admins\" " : string . Empty ) } "
361361 : null ;
362362
363- private string AddMaintainersToGithubRepoScript ( string adoTeamProject , string githubOrg , string githubRepo ) =>
363+ private string AddMaintainersToGithubRepoScript ( string adoTeamProject , string githubOrg , string githubRepo , string targetApiUrl ) =>
364364 _generateScriptOptions . CreateTeams
365- ? $ "gh ado2gh add-team-to-repo --github-org \" { githubOrg } \" --github-repo \" { githubRepo } \" --team \" { adoTeamProject . ReplaceInvalidCharactersWithDash ( ) } -Maintainers\" --role \" maintain\" { ( _log . Verbose ? " --verbose" : string . Empty ) } "
365+ ? $ "gh ado2gh add-team-to-repo{ ( targetApiUrl . HasValue ( ) ? $ " --target-api-url \" { targetApiUrl } \" " : string . Empty ) } --github-org \" { githubOrg } \" --github-repo \" { githubRepo } \" --team \" { adoTeamProject . ReplaceInvalidCharactersWithDash ( ) } -Maintainers\" --role \" maintain\" { ( _log . Verbose ? " --verbose" : string . Empty ) } "
366366 : null ;
367367
368- private string AddAdminsToGithubRepoScript ( string adoTeamProject , string githubOrg , string githubRepo ) =>
368+ private string AddAdminsToGithubRepoScript ( string adoTeamProject , string githubOrg , string githubRepo , string targetApiUrl ) =>
369369 _generateScriptOptions . CreateTeams
370- ? $ "gh ado2gh add-team-to-repo --github-org \" { githubOrg } \" --github-repo \" { githubRepo } \" --team \" { adoTeamProject . ReplaceInvalidCharactersWithDash ( ) } -Admins\" --role \" admin\" { ( _log . Verbose ? " --verbose" : string . Empty ) } "
370+ ? $ "gh ado2gh add-team-to-repo{ ( targetApiUrl . HasValue ( ) ? $ " --target-api-url \" { targetApiUrl } \" " : string . Empty ) } --github-org \" { githubOrg } \" --github-repo \" { githubRepo } \" --team \" { adoTeamProject . ReplaceInvalidCharactersWithDash ( ) } -Admins\" --role \" admin\" { ( _log . Verbose ? " --verbose" : string . Empty ) } "
371371 : null ;
372372
373373 private string RewireAzurePipelineScript ( string adoOrg , string adoTeamProject , string adoPipeline , string githubOrg , string githubRepo , string appId ) =>
0 commit comments