(
key: IntegrationTaskKey,
params: {
channel: string;
issueId: string;
latest: string;
url: string;
variables?: Omit<
L.AttachmentLinkSlackMutationVariables,
"channel" | "issueId" | "latest" | "url"
>;
}
)
| 399 | } |
| 400 | |
| 401 | attachmentLinkSlack( |
| 402 | key: IntegrationTaskKey, |
| 403 | params: { |
| 404 | channel: string; |
| 405 | issueId: string; |
| 406 | latest: string; |
| 407 | url: string; |
| 408 | variables?: Omit< |
| 409 | L.AttachmentLinkSlackMutationVariables, |
| 410 | "channel" | "issueId" | "latest" | "url" |
| 411 | >; |
| 412 | } |
| 413 | ): LinearReturnType<AttachmentPayload, "attachment"> { |
| 414 | return this.runTask( |
| 415 | key, |
| 416 | async (client) => { |
| 417 | const payload = await client.attachmentLinkSlack( |
| 418 | params.channel, |
| 419 | params.issueId, |
| 420 | params.latest, |
| 421 | params.url, |
| 422 | params.variables |
| 423 | ); |
| 424 | return serializeLinearOutput(await payload.attachment); |
| 425 | }, |
| 426 | { |
| 427 | name: "Link Slack Message", |
| 428 | params, |
| 429 | properties: [ |
| 430 | { label: "Issue ID", text: params.issueId }, |
| 431 | { label: "Channel", text: params.channel }, |
| 432 | { label: "Latest", text: params.latest }, |
| 433 | { label: "URL", text: params.url }, |
| 434 | ], |
| 435 | } |
| 436 | ); |
| 437 | } |
| 438 | |
| 439 | attachmentLinkURL( |
| 440 | key: IntegrationTaskKey, |
nothing calls this directly
no test coverage detected