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

Method getBlob

integrations/github/src/git.ts:74–99  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: {
      owner: string;
      repo: string;
      fileSHA: string;
    }
  )

Source from the content-addressed store, hash-verified

72 }
73
74 getBlob(
75 key: IntegrationTaskKey,
76 params: {
77 owner: string;
78 repo: string;
79 fileSHA: string;
80 }
81 ): GitHubReturnType<Octokit["rest"]["git"]["getBlob"]> {
82 return this.runTask(
83 key,
84 async (client, task) => {
85 const result = await client.rest.git.getBlob({
86 owner: params.owner,
87 repo: params.repo,
88 file_sha: params.fileSHA,
89 });
90 return result.data;
91 },
92 {
93 name: "Get Blob",
94 params,
95 properties: [...repoProperties(params)],
96 },
97 onError
98 );
99 }
100
101 createCommit(
102 key: IntegrationTaskKey,

Callers

nothing calls this directly

Calls 2

repoPropertiesFunction · 0.90
runTaskMethod · 0.45

Tested by

no test coverage detected