(
key: IntegrationTaskKey,
params: L.CommentCreateInput
)
| 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), { |
no test coverage detected