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

Method createCommit

integrations/github/src/git.ts:101–139  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: {
      owner: string;
      repo: string;
      message: string;
      tree: string;
      parents?: string[];
      author?: AuthorContent;
      committer?: CommitterContent;
      signature?: string;
    }
  )

Source from the content-addressed store, hash-verified

99 }
100
101 createCommit(
102 key: IntegrationTaskKey,
103 params: {
104 owner: string;
105 repo: string;
106 message: string;
107 tree: string;
108 parents?: string[];
109 author?: AuthorContent;
110 committer?: CommitterContent;
111 signature?: string;
112 }
113 ): GitHubReturnType<Octokit["rest"]["git"]["createCommit"]> {
114 return this.runTask(
115 key,
116 async (client, task) => {
117 const result = await client.rest.git.createCommit({
118 ...params,
119 });
120 return result.data;
121 },
122 {
123 name: "Create Commit",
124 params,
125 properties: [
126 ...repoProperties(params),
127 {
128 label: "Message",
129 text: params.message,
130 },
131 {
132 label: "Tree",
133 text: params.tree,
134 },
135 ],
136 },
137 onError
138 );
139 }
140
141 getCommit(
142 key: IntegrationTaskKey,

Callers

nothing calls this directly

Calls 2

repoPropertiesFunction · 0.90
runTaskMethod · 0.45

Tested by

no test coverage detected