MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / createTrigger

Function createTrigger

integrations/linear/src/webhooks.ts:148–159  ·  view source on GitHub ↗
(
  source: ReturnType<typeof createWebhookEventSource>,
  event: TEventSpecification,
  params: TriggerParams
)

Source from the content-addressed store, hash-verified

146>;
147
148export function createTrigger<TEventSpecification extends LinearEvents>(
149 source: ReturnType<typeof createWebhookEventSource>,
150 event: TEventSpecification,
151 params: TriggerParams
152): CreateTriggersResult<TEventSpecification> {
153 return new ExternalSourceTrigger({
154 event,
155 params,
156 source,
157 options: {},
158 });
159}
160
161const WebhookRegistrationDataSchema = z.object({
162 success: z.literal(true),

Callers 15

onAttachmentMethod · 0.90
onAttachmentCreatedMethod · 0.90
onAttachmentRemovedMethod · 0.90
onAttachmentUpdatedMethod · 0.90
onCommentMethod · 0.90
onCommentCreatedMethod · 0.90
onCommentRemovedMethod · 0.90
onCommentUpdatedMethod · 0.90
onCycleMethod · 0.90
onCycleCreatedMethod · 0.90
onCycleRemovedMethod · 0.90
onCycleUpdatedMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…