MCPcopy
hub / github.com/triggerdotdev/trigger.dev / get

Method get

integrations/github/src/repos.ts:8–36  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: { owner: string; repo: string }
  )

Source from the content-addressed store, hash-verified

6 constructor(private runTask: GitHubRunTask) {}
7
8 get(
9 key: IntegrationTaskKey,
10 params: { owner: string; repo: string }
11 ): GitHubReturnType<Octokit["rest"]["repos"]["get"]> {
12 return this.runTask(
13 key,
14 async (client, task) => {
15 const result = await client.rest.repos.get({
16 owner: params.owner,
17 repo: params.repo,
18 headers: {
19 "x-trigger-attempt": String(task.attempts),
20 },
21 });
22 return result.data;
23 },
24 {
25 name: "Get Repo",
26 params,
27 properties: [
28 {
29 label: "Repo",
30 text: params.repo,
31 },
32 ],
33 },
34 onError
35 );
36 }
37
38 updateWebhook(
39 key: IntegrationTaskKey,

Callers 13

onErrorFunction · 0.45
webhookHandlerFunction · 0.45
webhookHandlerFunction · 0.45
webhookHandlerFunction · 0.45
webhookHandlerFunction · 0.45
handleRequestFunction · 0.45
index.tsFile · 0.45
resend.tsFile · 0.45
httpTrigger.tsFile · 0.45
built-ins.tsFile · 0.45
interceptor.tsFile · 0.45

Calls 1

runTaskMethod · 0.45

Tested by

no test coverage detected