owner/name), and one workflow
(.github/workflows/ci.yml in a repository). The
routing job’s inputs in the
workflow file can override or narrow some of them.
How the levels combine
The workflow file cannot turn AutoPilot on or off, pause it, set provider
limits, or allow a provider or runner shape that CostGraph does not allow. A
job whose default runner is outside the runner limits keeps its default runner.
When the workflow file sets
policy, providers, or a runner limit, the
workflow shows Set in Git.
Read and change settings
Read the settings for a level withGET. Leave out repository and
workflow_path for the organization.
own), the settings in
effect (effective), and the level each effective value comes from
(inherited_from). Reading needs the focus:read scope or the Member role.
Change settings with PUT on the same path. It replaces every setting at that
level, and a field you leave null inherits from the wider level. Changing
settings needs the Admin role and an active
subscription.
Runners
GET /api/v1/tenant/ci/autopilot/labels lists every runner CostGraph knows for
you, grouped by provider. The list includes GitHub-hosted runners, runners of
providers integrated with CostGraph, and labels you set. Pass repository and
workflow_path to see one level. Each runner has a state.
To allow or block several runners at once,
PUT a list for one level.
DELETE with label and the same repository and
workflow_path.
Provider limits
Provider limits are set for the organization only. TheGET /api/v1/tenant/ci/autopilot/providers request lists every provider
AutoPilot can route to. Each has its limits and what routed jobs use now. PUT the limits for
one provider. A limit you leave null means no limit.
A job skips a provider at a limit and takes the next best runner or its
default. AutoPilot checks limits from its own estimates when it routes a job.
Limits do not read the provider’s bill or stop jobs that are already running.