示例#1
0
        public async Task <List <RepoLabel> > GetLabelsAsync(string owner, string repo)
        {
            using IDisposable scope = _fileLogger.CreateScope("Retrieving labels");
            List <RepoLabel> labels = await GetValueFromCache(StringTemplate.Labels(owner, repo), async() => RepoLabel.FromLabelList(await _githubClient.Issue.Labels.GetAllForRepository(owner, repo).ConfigureAwait(false)));

            return(labels);
        }
示例#2
0
        public async Task <List <RepoLabel> > GetLabelsAsync(string owner, string repo)
        {
            List <RepoLabel> labels = await GetValueFromCache(StringTemplate.Labels(owner, repo), async() => RepoLabel.FromLabelList(await _githubClient.Issue.Labels.GetAllForRepository(owner, repo)));

            return(labels);
        }