Skip to content

fix: make message parameters optional#404

Open
trueberryless wants to merge 3 commits intoactions:mainfrom
trueberryless:fix/message-required-parameters
Open

fix: make message parameters optional#404
trueberryless wants to merge 3 commits intoactions:mainfrom
trueberryless:fix/message-required-parameters

Conversation

@trueberryless
Copy link

Description

The action.yml defines both message parameters (issue_message and pr_message) as not required. Therefore, those parameters should also not be required in the executing code, which otherwise results in an error:

image

Related

Copilot AI review requested due to automatic review settings March 23, 2026 16:07
@trueberryless trueberryless requested a review from a team as a code owner March 23, 2026 16:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns the runtime behavior of the first-interaction action with action.yml by treating issue_message and pr_message as optional inputs, preventing failures when only one message is configured (e.g., PR-only usage).

Changes:

  • Remove required: true from issue_message / pr_message input retrieval.
  • Add early-exit “skip” behavior when the relevant message input is missing for the current event type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

trueberryless added a commit to trueberryless/npmx-dev-npmx.dev that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

issue_message is now a required parameter.

2 participants