Exemplo n.º 1
0
 public async Task <string> GetTokenForRepository(string repositoryUrl)
 {
     return(await GetTokenForInstallationAsync(await _installationLookup.GetInstallationId(repositoryUrl)));
 }
Exemplo n.º 2
0
 public static Task <long> GetInstallationId(this IInstallationLookup lookup, string organization, string repository)
 {
     return(lookup.GetInstallationId(GitHubHelper.GetRepositoryUrl(organization, repository)));
 }