gitea.cli.actions.runner.get
get
Get one Actions runner of a repository, an organization, an account or the instance.
A runner is addressed through the scope it is registered to, so asking for a real runner through a scope it does not belong to is reported as not found: the ID exists, the runner is simply not that scope's.
labels is what a job's runs-on is matched against, and is the usual reason a
job sits queued while a runner sits idle.
Functions:
gitea.cli.actions.runner.get.get_runner_command
get_runner_command(
ctx: Context,
runner_id: Annotated[
int, Option("--runner-id", help=RUNNER_ID_HELP)
],
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,
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
Get one Actions runner of a repository, an organization, an account or the instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ctx
|
Context
|
The Typer context. |
required |
runner_id
|
Annotated[int, Option('--runner-id', help=RUNNER_ID_HELP)]
|
The ID of the runner. |
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
|
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
|