MCPcopy
hub / github.com/iterative/cml / runnerById

Method runnerById

src/drivers/github.js:331–352  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

329 }
330
331 async runnerById(opts = {}) {
332 const { id } = opts;
333 const { owner, repo } = ownerRepo({ uri: this.repo });
334 const { actions } = octokit(this.token, this.repo, logger);
335
336 if (typeof repo === 'undefined') {
337 const { data: runner } = await actions.getSelfHostedRunnerForOrg({
338 org: owner,
339 runner_id: id
340 });
341
342 return this.parseRunner(runner);
343 }
344
345 const { data: runner } = await actions.getSelfHostedRunnerForRepo({
346 owner,
347 repo,
348 runner_id: id
349 });
350
351 return this.parseRunner(runner);
352 }
353
354 async runnerJob({ runnerId, status = 'queued' } = {}) {
355 const { owner, repo } = ownerRepo({ uri: this.repo });

Callers

nothing calls this directly

Calls 3

parseRunnerMethod · 0.95
ownerRepoFunction · 0.85
octokitFunction · 0.85

Tested by

no test coverage detected