(opts = {})
| 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 }); |
nothing calls this directly
no test coverage detected