Skip to content

Commit

Permalink
more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhankoral committed Nov 30, 2024
1 parent 8c6ad6b commit b257f37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sdk/FeatureImpactAnalyzer/GitHubPullRequestAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<FeatureImpactReport>();

Expand Down Expand Up @@ -133,6 +134,7 @@ public async Task CommentPullRequestWithSideEffectsAsync(
List<FeatureImpactReport> sideEffects
)
{
Console.WriteLine($"Side effect count: {sideEffects.Count}");
if (sideEffects.Count == 0)
{
return;
Expand Down
3 changes: 3 additions & 0 deletions Sdk/FeatureImpactAnalyzer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b257f37

Please sign in to comment.