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

Method createAttachment

integrations/linear/src/index.ts:233–253  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: L.AttachmentCreateInput
  )

Source from the content-addressed store, hash-verified

231 }
232
233 createAttachment(
234 key: IntegrationTaskKey,
235 params: L.AttachmentCreateInput
236 ): LinearReturnType<AttachmentPayload, "attachment"> {
237 return this.runTask(
238 key,
239 async (client) => {
240 const payload = await client.createAttachment(params);
241 return serializeLinearOutput(await payload.attachment);
242 },
243 {
244 name: "Create Attachment",
245 params,
246 properties: [
247 { label: "Issue ID", text: params.issueId },
248 { label: "Title", text: params.title },
249 { label: "URL", text: params.url },
250 ],
251 }
252 );
253 }
254
255 deleteAttachment(key: IntegrationTaskKey, params: { id: string }): Promise<DeletePayload> {
256 return this.runTask(key, (client) => client.deleteAttachment(params.id), {

Callers

nothing calls this directly

Calls 2

runTaskMethod · 0.95
serializeLinearOutputFunction · 0.85

Tested by

no test coverage detected