Query
query WorktreeEnrichment($kind: WorktreeEnrichmentKind!) {
worktreeEnrichment(kind: $kind) {
updates {
worktree {
id
codebaseId
gitDirectory
folder
relativePath
primary
}
canonicalOrigin
}
durationMs
warnings {
worktreeId
message
preserveFields
}
}
}Variables
{
"kind": "GITHUB"
}Response
{
"data": {
"worktreeEnrichment": {
"updates": [
{
"worktree": {
"id": "id",
"codebaseId": "id",
"gitDirectory": "string",
"folder": "string",
"relativePath": "string",
"primary": true
},
"canonicalOrigin": "string"
}
],
"durationMs": 1.5,
"warnings": [
{
"worktreeId": "id",
"message": "string",
"preserveFields": [
"APPROVAL_STATE"
]
}
]
}
}
}Queries
worktreeEnrichment
Refresh one kind of optional metadata without blocking the worktree list.
QUERY
worktreeEnrichment(appId: ID, worktreeId: ID, kind: WorktreeEnrichmentKind!, force: Boolean!): WorktreeEnrichment!Arguments
appId
ID
Identifier of an app whose assigned repositories should scope the results.
worktreeId
ID
Scope to the repository containing this worktree, including sibling checkouts.
kind
required
The kind of optional metadata to refresh.
force
Boolean!
default:false
Whether to bypass cached GitLab pipeline data when refreshing pipelines.
Returns
updates
Worktrees whose requested metadata was successfully refreshed.
durationMs
Float!
Server time spent refreshing the requested metadata, in milliseconds.
warnings
Failures encountered while refreshing optional worktree metadata.
Query
query WorktreeEnrichment($kind: WorktreeEnrichmentKind!) {
worktreeEnrichment(kind: $kind) {
updates {
worktree {
id
codebaseId
gitDirectory
folder
relativePath
primary
}
canonicalOrigin
}
durationMs
warnings {
worktreeId
message
preserveFields
}
}
}Variables
{
"kind": "GITHUB"
}Response
{
"data": {
"worktreeEnrichment": {
"updates": [
{
"worktree": {
"id": "id",
"codebaseId": "id",
"gitDirectory": "string",
"folder": "string",
"relativePath": "string",
"primary": true
},
"canonicalOrigin": "string"
}
],
"durationMs": 1.5,
"warnings": [
{
"worktreeId": "id",
"message": "string",
"preserveFields": [
"APPROVAL_STATE"
]
}
]
}
}
}