query CommandDefinition($id: ID!) {
commandDefinition(id: $id) {
id
name
description
script
targetKind
targetAgentId
}
}{
"id": "id"
}{
"data": {
"commandDefinition": {
"id": "id",
"name": "string",
"description": "string",
"script": "string",
"targetKind": "ANY_AGENT_HOME",
"targetAgentId": "id"
}
}
}commandDefinition
Returns a command definition, or null when it cannot be found.
commandDefinition(id: ID!): CommandDefinitionArguments
Identifier of the resource to return or affect.
Returns
Stable identifier for this command definition.
Display name of this command definition.
Human-readable description of this command definition.
The script associated with this command definition.
The target kind associated with this command definition.
Identifier of the related target agent. May be null when unavailable or not applicable.
The target agent associated with this command definition. May be null when unavailable or not applicable.
Identifiers of the repositories whose worktrees may run this command.
Repositories whose worktrees may run this command.
Identifier of the sole target repository. Null for zero or multiple repositories.
The sole target repository. Null for zero or multiple repositories.
The restart policy associated with this command definition.
The restart limit associated with this command definition. May be null when unavailable or not applicable.
The concurrency mode deciding whether runs of this command may share their target.
Whether worktree runs of this command block Git and worktree operations on the codebase.
Whether the quick action enabled condition is true for this command definition.
The quick action icon key associated with this command definition.
The quick action button variant associated with this command definition.
Whether the notifications enabled condition is true for this command definition.
ISO 8601 timestamp when this command definition was archived. May be null when unavailable or not applicable.
ISO 8601 timestamp when this command definition was created.
ISO 8601 timestamp when this command definition was last updated.
query CommandDefinition($id: ID!) {
commandDefinition(id: $id) {
id
name
description
script
targetKind
targetAgentId
}
}{
"id": "id"
}{
"data": {
"commandDefinition": {
"id": "id",
"name": "string",
"description": "string",
"script": "string",
"targetKind": "ANY_AGENT_HOME",
"targetAgentId": "id"
}
}
}