Skip to content

feat: allow custom actions and triggers to consume trigger inputs#24590

Open
Artur- wants to merge 1 commit into
mainfrom
fix-trigger-action
Open

feat: allow custom actions and triggers to consume trigger inputs#24590
Artur- wants to merge 1 commit into
mainfrom
fix-trigger-action

Conversation

@Artur-

@Artur- Artur- commented Jun 11, 2026

Copy link
Copy Markdown
Member

Action.Input#toJs was protected, so an Action implemented outside the internal trigger package could not render an Input it received as a parameter — it could only use inputs it captured statically. Widen it (and all overrides) to public so inputs work as action parameters from any package.

HandlerInput was package-private, forcing custom trigger families to declare anonymous Action.Input subclasses for handler-scoped event properties. Make the class and its constructor public so they can reuse the canonical implementation the built-in EventData holders use.

Action.Input#toJs was protected, so an Action implemented outside the
internal trigger package could not render an Input it received as a
parameter — it could only use inputs it captured statically. Widen it
(and all overrides) to public so inputs work as action parameters from
any package.

HandlerInput was package-private, forcing custom trigger families to
declare anonymous Action.Input subclasses for handler-scoped event
properties. Make the class and its constructor public so they can reuse
the canonical implementation the built-in EventData holders use.
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Test Results

 1 448 files  +1   1 448 suites  +1   1h 24m 47s ⏱️ + 1m 35s
10 224 tests +3  10 156 ✅ +3  68 💤 ±0  0 ❌ ±0 
10 696 runs  +3  10 627 ✅ +3  69 💤 ±0  0 ❌ ±0 

Results for commit ae6b47b. ± Comparison against base commit 3f41bd0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant