diff --git a/src/ProfanityFilter.Action/Extensions/CoreServiceExtensions.cs b/src/ProfanityFilter.Action/Extensions/CoreServiceExtensions.cs index e3bbf62..306712c 100644 --- a/src/ProfanityFilter.Action/Extensions/CoreServiceExtensions.cs +++ b/src/ProfanityFilter.Action/Extensions/CoreServiceExtensions.cs @@ -34,7 +34,7 @@ internal static class CoreServiceExtensions } // Consumers can opt-out of this feature. - if (core.GetBoolInput("include-updated-note") is false) + if (core.GetBoolInput("include-updated-note", new() { Required = false }) is false) { return finalResult; } diff --git a/src/ProfanityFilter.Action/ProfanityProcessor.Issue.cs b/src/ProfanityFilter.Action/ProfanityProcessor.Issue.cs index e0f3ba0..3975151 100644 --- a/src/ProfanityFilter.Action/ProfanityProcessor.Issue.cs +++ b/src/ProfanityFilter.Action/ProfanityProcessor.Issue.cs @@ -52,7 +52,7 @@ private async Task HandleIssueAsync( await client.UpdateIssueAsync((int)issueNumber, issueUpdate); - if (core.GetBoolInput("include-confused-reaction")) + if (core.GetBoolInput("include-confused-reaction", new() { Required = false })) { await client.AddReactionAsync(issueNumber, ReactionContent.Confused); } diff --git a/src/ProfanityFilter.Action/ProfanityProcessor.IssueComment.cs b/src/ProfanityFilter.Action/ProfanityProcessor.IssueComment.cs index a499f7b..644e119 100644 --- a/src/ProfanityFilter.Action/ProfanityProcessor.IssueComment.cs +++ b/src/ProfanityFilter.Action/ProfanityProcessor.IssueComment.cs @@ -39,7 +39,7 @@ private async Task HandleIssueCommentAsync( await client.UpdateIssueCommentAsync(issueCommentId, finalBodyUpdate); - if (core.GetBoolInput("include-confused-reaction")) + if (core.GetBoolInput("include-confused-reaction", new() { Required = false })) { var issueNumber = (int)_context!.Payload!.Issue!.Number; await client.AddReactionAsync(issueNumber, ReactionContent.Confused); diff --git a/src/ProfanityFilter.Action/ProfanityProcessor.PullRequest.cs b/src/ProfanityFilter.Action/ProfanityProcessor.PullRequest.cs index b3b99ab..e18521a 100644 --- a/src/ProfanityFilter.Action/ProfanityProcessor.PullRequest.cs +++ b/src/ProfanityFilter.Action/ProfanityProcessor.PullRequest.cs @@ -38,7 +38,7 @@ private async Task HandlePullRequestAsync( await client.UpdatePullRequestAsync( (int)pullRequestNumber, pullRequestUpdate, label?.Name); - if (core.GetBoolInput("include-confused-reaction")) + if (core.GetBoolInput("include-confused-reaction", new() { Required = false })) { await client.AddReactionAsync( pullRequestNumber, ReactionContent.Confused);