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

Method updateRef

integrations/github/src/git.ts:266–299  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: {
      owner: string;
      repo: string;
      ref: string;
      sha: string;
      force?: boolean;
    }
  )

Source from the content-addressed store, hash-verified

264 }
265
266 updateRef(
267 key: IntegrationTaskKey,
268 params: {
269 owner: string;
270 repo: string;
271 ref: string;
272 sha: string;
273 force?: boolean;
274 }
275 ): GitHubReturnType<Octokit["rest"]["git"]["updateRef"]> {
276 return this.runTask(
277 key,
278 async (client, task) => {
279 const result = await client.rest.git.updateRef(params);
280 return result.data;
281 },
282 {
283 name: "Update Reference",
284 params,
285 properties: [
286 ...repoProperties(params),
287 {
288 label: "Ref",
289 text: params.ref,
290 },
291 {
292 label: "SHA",
293 text: params.ref,
294 },
295 ],
296 },
297 onError
298 );
299 }
300
301 deleteRef(
302 key: IntegrationTaskKey,

Callers

nothing calls this directly

Calls 2

repoPropertiesFunction · 0.90
runTaskMethod · 0.45

Tested by

no test coverage detected