fix(webhook): strip extraneous fields from trigger processing#2686
Merged
waleedlatif1 merged 1 commit intostagingfrom Jan 6, 2026
Merged
fix(webhook): strip extraneous fields from trigger processing#2686waleedlatif1 merged 1 commit intostagingfrom
waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR refactors webhook/trigger processing to centralize logic in Key changes:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Webhook as Webhook Request
participant FWI as formatWebhookInput()
participant TH as TriggerBlockHandler
participant BE as BlockExecutor
participant Log as Block Logs
Webhook->>FWI: Incoming webhook data
Note over FWI: Single source of truth<br/>for all providers
FWI->>FWI: Format provider-specific data
FWI->>FWI: Add webhook metadata
FWI->>FWI: Add workflowId
FWI-->>TH: Formatted output with<br/>webhook & workflowId
TH->>TH: Check if webhook.data exists
alt Has webhook data
TH->>TH: Destructure: { webhook, workflowId, ...cleanOutput }
TH-->>BE: Return cleanOutput<br/>(without internal fields)
else No webhook data
TH-->>BE: Return starterOutput as-is
end
BE->>BE: filterOutputForLog()
alt Is trigger block
BE->>BE: Strip webhook, workflowId, input
BE-->>Log: Filtered output
else Not trigger
BE-->>Log: Full output
end
|
waleedlatif1
added a commit
that referenced
this pull request
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
formatWebhookInputfor a single source of truthType of Change
Testing
Tested manually
Checklist