(ctx context.Context, enterprise, org, repo string, opts *github.ListOptions)
| 342 | } |
| 343 | |
| 344 | func (c *Client) listRunners(ctx context.Context, enterprise, org, repo string, opts *github.ListOptions) (*github.Runners, *github.Response, error) { |
| 345 | if len(repo) > 0 { |
| 346 | return c.Actions.ListRunners(ctx, org, repo, opts) |
| 347 | } |
| 348 | if len(org) > 0 { |
| 349 | return c.Actions.ListOrganizationRunners(ctx, org, opts) |
| 350 | } |
| 351 | return c.Enterprise.ListRunners(ctx, enterprise, opts) |
| 352 | } |
| 353 | |
| 354 | func (c *Client) ListRepositoryWorkflowRuns(ctx context.Context, user string, repoName string) ([]*github.WorkflowRun, error) { |
| 355 | queued, err := c.listRepositoryWorkflowRuns(ctx, user, repoName, "queued") |
no test coverage detected