gitea.cli.actions.runner.list
list
List the Actions runners of a repository, an organization, an account or the instance.
A runner is registered to one scope and then runs the jobs of everything under it, so a scope's runners are the ones registered there - not every runner that could pick up its jobs. A repository whose jobs all run on an organization runner has an empty listing of its own, and that is not a repository with nowhere to run.
Which scope is asked for follows the usual convention - --owner with
--repository for a repository, --owner alone for an organization, neither for
the authenticated account - and --admin asks for the instance.
status on each entry says whether the runner is reachable and busy whether it
is running something. The two are independent of --state: a runner can be
online and disabled at once, and then takes no jobs at all.
Classes
Functions:
gitea.cli.actions.runner.list.list_runners_command
list_runners_command(
ctx: Context,
owner: Annotated[
str | None, Option("--owner", help=OWNER_SCOPE_HELP)
] = None,
repository: Annotated[
str | None,
Option("--repository", help=REPOSITORY_SCOPE_HELP),
] = None,
admin: Annotated[
bool, Option("--admin", help=ADMIN_HELP)
] = False,
state: Annotated[
RunnerState | None,
Option("--state", help=RUNNER_STATE_HELP),
] = None,
account_name: Annotated[
str | None,
Option(
"--account-name",
help="Name of the account to use for authentication.",
),
] = None,
token: Annotated[
str | None,
Option(
"--token",
help="Token for authentication. If not provided, the token from the specified account will be used.",
),
] = None,
base_url: Annotated[
str | None,
Option(
"--base-url",
help="Base URL of the Gitea platform. If not provided, the base URL from the specified account will be used.",
),
] = None,
) -> None
List the Actions runners of a repository, an organization, an account or the instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ctx
|
Context
|
The Typer context. |
required |
owner
|
Annotated[str | None, Option('--owner', help=OWNER_SCOPE_HELP)]
|
The owner of the repository, or the organization itself. |
None
|
repository
|
Annotated[str | None, Option('--repository', help=REPOSITORY_SCOPE_HELP)]
|
The name of the repository, to narrow the owner to one of its repositories. |
None
|
admin
|
Annotated[bool, Option('--admin', help=ADMIN_HELP)]
|
Whether to address the whole instance. |
False
|
state
|
Annotated[RunnerState | None, Option('--state', help=RUNNER_STATE_HELP)]
|
The state to list the runners of, or None to list both. |
None
|
account_name
|
Annotated[str | None, Option('--account-name', help='Name of the account to use for authentication.')]
|
Name of the account to use for authentication. |
None
|
token
|
Annotated[str | None, Option('--token', help='Token for authentication. If not provided, the token from the specified account will be used.')]
|
Token for authentication. |
None
|
base_url
|
Annotated[str | None, Option('--base-url', help='Base URL of the Gitea platform. If not provided, the base URL from the specified account will be used.')]
|
Base URL of the Gitea platform. |
None
|