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