Example #1
0
        public async Task <JObject> ReadGlobalJsonAsync(string repoUri, string branch)
        {
            _logger.LogInformation(
                $"Reading '{VersionFiles.GlobalJson}' in repo '{repoUri}' and branch '{branch}'...");

            string fileContent = await _gitClient.GetFileContentsAsync(VersionFiles.GlobalJson, repoUri, branch);

            return(JObject.Parse(fileContent));
        }
        public async Task <JObject> ReadGlobalJsonAsync(string repoUri, string branch)
        {
            _logger.LogInformation($"Reading '{DependencyFilePath.GlobalJson}' in repo '{repoUri}' and branch '{branch}'...");

            string fileContent = await _gitClient.GetFileContentsAsync(DependencyFilePath.GlobalJson, repoUri, branch);

            JObject jsonContent = JObject.Parse(fileContent);

            return(jsonContent);
        }