You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Validate if the issue comment is from a user vs bot
58
+
if(issueCommentEvent?.Sender?.Type==UserType.Bot)
59
+
{
60
+
_logger.LogInformation("Bypassing GitHub Webhook event for Issue# {number} with action - {action}...",issueCommentEvent?.Issue.Number,issueCommentEvent?.Action);
61
+
return;
62
+
}
63
+
56
64
_logger.LogInformation("Starting the process of the Issue Comment event for Issue# {number} with action - {action}...",(issueCommentEvent?.Issue.Number),issueCommentEvent?.Action);
_logger.LogInformation("Pull request #{prNumber} is {State} with merge commit SHA {MergeCommitSha}.",prNumber,pullRequestEvent?.PullRequest.State,pullRequestEvent?.PullRequest.MergeCommitSha);
47
+
_logger.LogInformation("Pull request #{prNumber} is {State} with merge commit SHA {MergeCommitSha}.",prNumber,pullRequestEvent?.PullRequest.State.Value,pullRequestEvent?.PullRequest.MergeCommitSha);
_logger.LogDebug("Bypassing GitHub Webhook event for Issue# {Number} with action: {Action} in repository {RepoName}",issuesEvent?.Issue?.Number,issuesEvent?.Action,issuesEvent?.Repository?.Name);
_logger.LogDebug("Bypassing GitHub Webhook event for Issue# {Number} with action: {Action} in repository {RepoName}",issuesEvent?.Issue?.Number,issuesEvent?.Action,issuesEvent?.Repository?.Name);
_logger.LogDebug("Bypassing GitHub Webhook event for Issue# {Number} with action: {Action} in repository {RepoName}",issueCommentEvent?.Issue?.Number,issueCommentEvent?.Action,issueCommentEvent?.Repository?.Name);
_logger.LogDebug("Bypassing GitHub Webhook event for PR# {Number} with action: {Action} in repository {RepoName}",pullRequestEvent?.PullRequest?.Number,pullRequestEvent?.Action,pullRequestEvent?.Repository?.Name);
0 commit comments