From b257f37d7aa0b48d642d2c2d8fc49789a0c7e17c Mon Sep 17 00:00:00 2001 From: oguzhankoral Date: Sun, 1 Dec 2024 01:52:52 +0300 Subject: [PATCH] more verbose --- Sdk/FeatureImpactAnalyzer/GitHubPullRequestAnalyzer.cs | 2 ++ Sdk/FeatureImpactAnalyzer/Program.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Sdk/FeatureImpactAnalyzer/GitHubPullRequestAnalyzer.cs b/Sdk/FeatureImpactAnalyzer/GitHubPullRequestAnalyzer.cs index ba0ca750e..9aa5ad3ec 100644 --- a/Sdk/FeatureImpactAnalyzer/GitHubPullRequestAnalyzer.cs +++ b/Sdk/FeatureImpactAnalyzer/GitHubPullRequestAnalyzer.cs @@ -32,6 +32,7 @@ int pullRequestNumber var changedFiles = await _client .PullRequest.Files(repositoryOwner, repositoryName, pullRequestNumber) .ConfigureAwait(true); + Console.WriteLine($"Changed Files:\n {changedFiles}"); var sideEffectReports = new List(); @@ -133,6 +134,7 @@ public async Task CommentPullRequestWithSideEffectsAsync( List sideEffects ) { + Console.WriteLine($"Side effect count: {sideEffects.Count}"); if (sideEffects.Count == 0) { return; diff --git a/Sdk/FeatureImpactAnalyzer/Program.cs b/Sdk/FeatureImpactAnalyzer/Program.cs index 8da090666..56f50ff29 100644 --- a/Sdk/FeatureImpactAnalyzer/Program.cs +++ b/Sdk/FeatureImpactAnalyzer/Program.cs @@ -23,6 +23,9 @@ public static async Task Main(string[] args) { var (owner, name) = ParseRepository(repo); var analyzer = new GitHubPullRequestAnalyzer(token); + Console.WriteLine($"Name: {name}"); + Console.WriteLine($"Owner: {owner}"); + Console.WriteLine($"Analyzing PR {prNumber}"); var sideEffects = await analyzer.AnalyzePullRequestChangesAsync(owner, name, prNumber).ConfigureAwait(true);