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

Method createRef

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

Source from the content-addressed store, hash-verified

230 }
231
232 createRef(
233 key: IntegrationTaskKey,
234 params: {
235 owner: string;
236 repo: string;
237 ref: string;
238 sha: string;
239 }
240 ): GitHubReturnType<Octokit["rest"]["git"]["createRef"]> {
241 return this.runTask(
242 key,
243 async (client, task) => {
244 const result = await client.rest.git.createRef(params);
245 return result.data;
246 },
247 {
248 name: "Create Reference",
249 params,
250 properties: [
251 ...repoProperties(params),
252 {
253 label: "Ref",
254 text: params.ref,
255 },
256 {
257 label: "SHA",
258 text: params.ref,
259 },
260 ],
261 },
262 onError
263 );
264 }
265
266 updateRef(
267 key: IntegrationTaskKey,

Callers

nothing calls this directly

Calls 2

repoPropertiesFunction · 0.90
runTaskMethod · 0.45

Tested by

no test coverage detected