Skip to content

Commit

Permalink
Updated WOP
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Jul 26, 2020
1 parent 4f188e0 commit f00b252
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions WebOptimizationProject/GitHubRepositoryOptimizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,25 @@ public async Task<IEnumerable<string>> ObtainRepositoriesForOwner(string reposit
return orderedPubReposNames;
}



public async Task GoOptimize(long repositoryId, string branchName = null)
{
var repositoryInfo = await _gitOctoKitHandler.GitHubClient.Repository.Get(repositoryId);
await GoOptimize(repositoryInfo, branchName);
}

public async Task GoOptimize(string repositoryOwner, string repositoryName, string branchName = null)
{
var repositoryInfo = await _gitOctoKitHandler.GitHubClient.Repository.Get(repositoryOwner, repositoryName);
await GoOptimize(repositoryInfo, branchName);
}

public async Task GoOptimize(Repository repository, string branchName = null)
{
var repositoryOwner = repository.Owner.Name;
var repositoryName = repository.Name;

Console.WriteLine($"{repositoryOwner}/{repositoryName} is being optimized...");
Console.WriteLine();

Expand Down

0 comments on commit f00b252

Please sign in to comment.