コード例 #1
0
        private async Task <JsonReport> GetBaseline()
        {
            var branchName = _branchProvider.GetCurrentBranchName();

            var baselineLocation = $"dashboard-compare/{branchName}";

            var report = await _dashboardClient.PullReport(baselineLocation);

            if (report == null)
            {
                _logger.LogInformation("We could not locate a baseline for project {0}, now trying fallback Version {1}", _options.ProjectName, _options.FallbackVersion);

                return(await GetFallbackBaseline());
            }

            _logger.LogInformation("Found report of project {0} using version {1} ", _options.ProjectName, branchName);

            return(report);
        }
コード例 #2
0
 public async Task <JsonReport> Load(string version)
 {
     return(await _client.PullReport(version));
 }