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

Method getRef

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

Source from the content-addressed store, hash-verified

201 }
202
203 getRef(
204 key: IntegrationTaskKey,
205 params: {
206 owner: string;
207 repo: string;
208 ref: string;
209 }
210 ): GitHubReturnType<Octokit["rest"]["git"]["getRef"]> {
211 return this.runTask(
212 key,
213 async (client, task) => {
214 const result = await client.rest.git.getRef(params);
215 return result.data;
216 },
217 {
218 name: "Get Reference",
219 params,
220 properties: [
221 ...repoProperties(params),
222 {
223 label: "Ref",
224 text: params.ref,
225 },
226 ],
227 },
228 onError
229 );
230 }
231
232 createRef(
233 key: IntegrationTaskKey,

Callers

nothing calls this directly

Calls 2

repoPropertiesFunction · 0.90
runTaskMethod · 0.45

Tested by

no test coverage detected