Skip to content

Defer getInput calls to point of use#403

Open
andiradulescu wants to merge 1 commit intoactions:mainfrom
andiradulescu:defer-getinput-to-point-of-use
Open

Defer getInput calls to point of use#403
andiradulescu wants to merge 1 commit intoactions:mainfrom
andiradulescu:defer-getinput-to-point-of-use

Conversation

@andiradulescu
Copy link

@andiradulescu andiradulescu commented Feb 25, 2026

This makes either issue_message or pr_message optional, when first-interaction is needed only for PRs or only for Issues.

Moved getInput calls from top-level reads to the point of use inside createComment so that only the relevant input is now read based on event type (Issue or PR). Also updated tests.

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.

1 participant