Query
query WorktreeAutoSync($worktreeId: ID!) {
worktreeAutoSync(worktreeId: $worktreeId) {
worktreeId
state
conflictWorkflowId
conflictWorkflowChoice
lastError
pauseReason
}
}Variables
{
"worktreeId": "id"
}Response
{
"data": {
"worktreeAutoSync": {
"worktreeId": "id",
"state": "string",
"conflictWorkflowId": "id",
"conflictWorkflowChoice": "string",
"lastError": "string",
"pauseReason": "PREPARATION_CONFLICT"
}
}
}Queries
worktreeAutoSync
Returns a worktree auto sync, or null when it cannot be found.
QUERY
worktreeAutoSync(worktreeId: ID!): WorktreeAutoSyncArguments
worktreeId
ID!
required
Identifier of the worktree.
Returns
worktreeId
ID!
Identifier of the related worktree.
state
String!
Current state of this worktree auto sync.
conflictWorkflowId
ID
Identifier of the related conflict workflow. May be null when unavailable or not applicable.
conflictWorkflowChoice
String
The conflict workflow choice associated with this worktree auto sync. May be null when unavailable or not applicable.
lastError
String
The last error associated with this worktree auto sync. May be null when unavailable or not applicable.
pauseReason
Structured reason Auto Sync is paused.
lastSyncedAt
String
ISO 8601 timestamp when this worktree auto sync was last synchronized. May be null when unavailable or not applicable.
updatedAt
String!
ISO 8601 timestamp when this worktree auto sync was last updated.
Query
query WorktreeAutoSync($worktreeId: ID!) {
worktreeAutoSync(worktreeId: $worktreeId) {
worktreeId
state
conflictWorkflowId
conflictWorkflowChoice
lastError
pauseReason
}
}Variables
{
"worktreeId": "id"
}Response
{
"data": {
"worktreeAutoSync": {
"worktreeId": "id",
"state": "string",
"conflictWorkflowId": "id",
"conflictWorkflowChoice": "string",
"lastError": "string",
"pauseReason": "PREPARATION_CONFLICT"
}
}
}