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

Method createReaction

integrations/linear/src/index.ts:1464–1487  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: L.ReactionCreateInput & { emoji: string }
  )

Source from the content-addressed store, hash-verified

1462 }
1463
1464 createReaction(
1465 key: IntegrationTaskKey,
1466 params: L.ReactionCreateInput & { emoji: string }
1467 ): LinearReturnType<ReactionPayload, "reaction"> {
1468 return this.runTask(
1469 key,
1470 async (client) => {
1471 const payload = await client.createReaction(params);
1472 return serializeLinearOutput(await payload.reaction);
1473 },
1474 {
1475 name: "Create Reaction",
1476 params,
1477 properties: [
1478 ...(params.commentId ? [{ label: "Comment ID", text: params.commentId }] : []),
1479 ...(params.issueId ? [{ label: "Issue ID", text: params.issueId }] : []),
1480 ...(params.projectUpdateId
1481 ? [{ label: "ProjectUpdate ID", text: params.projectUpdateId }]
1482 : []),
1483 { label: "Emoji", text: params.emoji },
1484 ],
1485 }
1486 );
1487 }
1488
1489 deleteReaction(key: IntegrationTaskKey, params: { id: string }): Promise<DeletePayload> {
1490 return this.runTask(key, (client) => client.deleteReaction(params.id), {

Callers 1

linear.tsFile · 0.80

Calls 2

runTaskMethod · 0.95
serializeLinearOutputFunction · 0.85

Tested by

no test coverage detected