Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public override AbortMigrationCommandHandler BuildHandler(AbortMigrationCommandA
}

var log = sp.GetRequiredService<OctoLogger>();
var githubApi = sp.GetRequiredService<ITargetGithubApiFactory>().Create(args.TargetApiUrl, args.GithubPat);
var githubApi = sp.GetRequiredService<ITargetGithubApiFactory>().Create(args.TargetApiUrl, null, args.GithubPat);

return new AbortMigrationCommandHandler(log, githubApi);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override WaitForMigrationCommandHandler BuildHandler(WaitForMigrationComm
}

var log = sp.GetRequiredService<OctoLogger>();
var githubApi = sp.GetRequiredService<ITargetGithubApiFactory>().Create(args.TargetApiUrl, args.GithubPat);
var githubApi = sp.GetRequiredService<ITargetGithubApiFactory>().Create(args.TargetApiUrl, null, args.GithubPat);
var warningsCountLogger = sp.GetRequiredService<WarningsCountLogger>();

return new WaitForMigrationCommandHandler(log, githubApi, warningsCountLogger);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public async Task GithubApiFactory_Should_Use_The_Default_Github_Api_Url_If_Pass
.Returns(httpClient);

// Act
var githubApi = _sourceGithubApiFactory.Create(null, SOURCE_GH_PAT);
var githubApi = _sourceGithubApiFactory.Create(null, null, SOURCE_GH_PAT);
await githubApi.DeleteRepo("org", "repo"); // call a simple/random API method just for the sake of verifying the base API url

// Assert
Expand Down Expand Up @@ -230,7 +230,7 @@ public async Task GithubApiFactory_Should_Use_The_Default_Github_Api_Url_If_Pass
.Returns(httpClient);

// Act
var githubApi = _targetGithubApiFactory.Create(null, TARGET_GH_PAT);
var githubApi = _targetGithubApiFactory.Create(null, null, TARGET_GH_PAT);
await githubApi.DeleteRepo("org", "repo"); // call a simple/random API method just for the sake of verifying the base API url

// Assert
Expand Down Expand Up @@ -261,7 +261,7 @@ public async Task GithubApiFactory_Should_Use_The_Default_Github_Api_Url_If_Pass
.Returns(httpClient);

// Act
var githubApi = _sourceGithubApiFactory.CreateClientNoSsl(null, SOURCE_GH_PAT);
var githubApi = _sourceGithubApiFactory.CreateClientNoSsl(null, null, SOURCE_GH_PAT);
await githubApi.DeleteRepo("org", "repo"); // call a simple/random API method just for the sake of verifying the base API url

// Assert
Expand Down
2 changes: 1 addition & 1 deletion src/gei/Commands/MigrateRepo/MigrateRepoCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public override MigrateRepoCommandHandler BuildHandler(MigrateRepoCommandArgs ar
var awsApiFactory = sp.GetRequiredService<AwsApiFactory>();
var azureApiFactory = sp.GetRequiredService<IAzureApiFactory>();
var httpDownloadServiceFactory = sp.GetRequiredService<HttpDownloadServiceFactory>();
ghesApi = args.NoSslVerify ? sourceGithubApiFactory.CreateClientNoSsl(args.GhesApiUrl, args.GithubSourcePat) : sourceGithubApiFactory.Create(args.GhesApiUrl, args.GithubSourcePat);
ghesApi = args.NoSslVerify ? sourceGithubApiFactory.CreateClientNoSsl(args.GhesApiUrl, null, args.GithubSourcePat) : sourceGithubApiFactory.Create(args.GhesApiUrl, null, args.GithubSourcePat);
httpDownloadService = args.NoSslVerify ? httpDownloadServiceFactory.CreateClientNoSsl() : httpDownloadServiceFactory.CreateDefault();

if (args.AzureStorageConnectionString.HasValue() || environmentVariableProvider.AzureStorageConnectionString(false).HasValue())
Expand Down
Loading