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

Method getCommit

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

Source from the content-addressed store, hash-verified

139 }
140
141 getCommit(
142 key: IntegrationTaskKey,
143 params: {
144 owner: string;
145 repo: string;
146 commitSHA: string;
147 }
148 ): GitHubReturnType<Octokit["rest"]["git"]["getCommit"]> {
149 return this.runTask(
150 key,
151 async (client, task) => {
152 const result = await client.rest.git.getCommit({
153 owner: params.owner,
154 repo: params.repo,
155 commit_sha: params.commitSHA,
156 });
157 return result.data;
158 },
159 {
160 name: "Get Commit",
161 params,
162 properties: [
163 ...repoProperties(params),
164 {
165 label: "Commit SHA",
166 text: params.commitSHA,
167 },
168 ],
169 },
170 onError
171 );
172 }
173
174 listMatchingRefs(
175 key: IntegrationTaskKey,

Callers 1

github.tsFile · 0.80

Calls 2

repoPropertiesFunction · 0.90
runTaskMethod · 0.45

Tested by

no test coverage detected