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

Method createBlob

integrations/github/src/git.ts:39–72  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: {
      owner: string;
      repo: string;
      content: string;
      encoding?: Endcoding;
    }
  )

Source from the content-addressed store, hash-verified

37 constructor(private runTask: GitHubRunTask) {}
38
39 createBlob(
40 key: IntegrationTaskKey,
41 params: {
42 owner: string;
43 repo: string;
44 content: string;
45 encoding?: Endcoding;
46 }
47 ): GitHubReturnType<Octokit["rest"]["git"]["createBlob"]> {
48 return this.runTask(
49 key,
50 async (client, task) => {
51 const result = await client.rest.git.createBlob({
52 owner: params.owner,
53 repo: params.repo,
54 content: params.content,
55 encoding: params.encoding,
56 });
57 return result.data;
58 },
59 {
60 name: "Create Blob",
61 params,
62 properties: [
63 ...repoProperties(params),
64 {
65 label: "Content",
66 text: params.content,
67 },
68 ],
69 },
70 onError
71 );
72 }
73
74 getBlob(
75 key: IntegrationTaskKey,

Callers

nothing calls this directly

Calls 2

repoPropertiesFunction · 0.90
runTaskMethod · 0.45

Tested by

no test coverage detected