Skip to main content
objectWorktree

Fields

id
ID!

Stable identifier for this worktree.

codebaseId
ID!

Identifier of the related codebase.

gitDirectory
String!

Filesystem directory associated with this worktree.

folder
String!

The folder associated with this worktree.

relativePath
String!

Filesystem path associated with this worktree.

primary
Boolean!

Whether this worktree is the primary item.

branch
String

Git branch associated with this worktree. May be null when unavailable or not applicable.

headSha
String

Git commit SHA associated with this worktree. May be null when unavailable or not applicable.

codeStateHash
String

Hash of the complete worktree code state, including local changes. May be null when unavailable or not applicable.

upstream
String

The upstream associated with this worktree. May be null when unavailable or not applicable.

ahead
Int

The ahead associated with this worktree. May be null when unavailable or not applicable.

behind
Int

The behind associated with this worktree. May be null when unavailable or not applicable.

The sync state associated with this worktree.

baseBranch
String

Git branch associated with this worktree. May be null when unavailable or not applicable.

baseBranchOverride
String

The base branch override associated with this worktree. May be null when unavailable or not applicable.

baseAhead
Int

The base ahead associated with this worktree. May be null when unavailable or not applicable.

baseBehind
Int

The base behind associated with this worktree. May be null when unavailable or not applicable.

hasStagedChanges
Boolean!

Whether this worktree has staged changes.

hasUnstagedChanges
Boolean!

Whether this worktree has unstaged changes.

rebaseInProgress
Boolean!

Whether the rebase in progress condition is true for this worktree.

hasConflicts
Boolean!

Whether this worktree has conflicts.

The push status associated with this worktree.

highlightColor
String

The highlight color associated with this worktree. May be null when unavailable or not applicable.

availability
String!

The availability associated with this worktree.

statusError
String

The status error associated with this worktree. May be null when unavailable or not applicable.

ticketKey
String

The ticket key associated with this worktree. May be null when unavailable or not applicable.

ticketTitle
String

The ticket title associated with this worktree. May be null when unavailable or not applicable.

ticketStatus
String

The ticket status associated with this worktree. May be null when unavailable or not applicable.

The pull request associated with this worktree. May be null when unavailable or not applicable.

sourceControlRequest

The provider-neutral pull or merge request associated with this worktree.

gitLabPipelines

GitLab pipelines associated with the worktree's current commit.

The latest build associated with this worktree. May be null when unavailable or not applicable.

tags

Tags associated with this worktree.

activeJob

The active job associated with this worktree. May be null when unavailable or not applicable.

The auto sync associated with this worktree. May be null when unavailable or not applicable.

The auto merge associated with this worktree. May be null when unavailable or not applicable.

lastCheckedAt
String

ISO 8601 timestamp when this worktree was last checked. May be null when unavailable or not applicable.

missingAt
String

ISO 8601 timestamp when this worktree was first observed missing. May be null when unavailable or not applicable.

createdAt
String!

ISO 8601 timestamp when this worktree was created.

updatedAt
String!

ISO 8601 timestamp when this worktree was last updated.