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

Method createComment

integrations/linear/src/index.ts:530–549  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: L.CommentCreateInput
  )

Source from the content-addressed store, hash-verified

528 }
529
530 createComment(
531 key: IntegrationTaskKey,
532 params: L.CommentCreateInput
533 ): LinearReturnType<CommentPayload, "comment"> {
534 return this.runTask(
535 key,
536 async (client) => {
537 const payload = await client.createComment(params);
538 return serializeLinearOutput(await payload.comment);
539 },
540 {
541 name: "Create Comment",
542 params,
543 properties: [
544 { label: "Issue ID", text: params.issueId },
545 { label: "Body", text: params.body ?? "" },
546 ],
547 }
548 );
549 }
550
551 deleteComment(key: IntegrationTaskKey, params: { id: string }): Promise<DeletePayload> {
552 return this.runTask(key, (client) => client.deleteComment(params.id), {

Callers 2

byo-auth.tsFile · 0.45
linear.tsFile · 0.45

Calls 2

runTaskMethod · 0.95
serializeLinearOutputFunction · 0.85

Tested by

no test coverage detected