You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First webhook-triggered block implementation based on architecture sketch made in #8349.
Required parts
Add DB tables for webhooks and their links to nodes
Mechanism to register/update/delete webhook on block create/update/delete
Tying this to the block's credentials instead of the block itself because the webhook has to be administrated using those credentials.
one (parametrized) endpoint for all, with the possibility of making provider-specific exceptions if needed: /integrations/{provider}/webhooks/{webhook_id}/ingress
Logic to initiate a graph execution when a webhook request is received
Verify the legitimacy of the webhook request/payload
check in the receiving endpoint
Initiate a graph execution using the webhook payload
execution input = input_default + webhook payload
On deletion of integration credentials -> delete all associated webhooks
The block itself: GitHub On Pull Request (name subject to change)
inputs: credentials, repo (URL or {owner}/{repo_name}), on_event_types (create/update/delete etc.)
First webhook-triggered block implementation based on architecture sketch made in #8349.
Required parts
Tying this to the block's credentials instead of the block itself because the webhook has to be administrated using those credentials.
Block.on_node_update(cls, new_default_input, old_default_input = None)
/integrations/{provider}/webhooks/{webhook_id}/ingress
input_default
+ webhook payloadcredentials
,repo
(URL or{owner}/{repo_name}
),on_event_types
(create/update/delete etc.)pull_request
,event_type
Sub-issues
/integrations/{provider}/webhooks/{webhook_id}/ingress
#8356The text was updated successfully, but these errors were encountered: