All GraphQL types · Operations
BranchMergePreview
Response type in the GraphQL API.
The file-by-file changes a merge applies, with the verdict the merge would reach.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Response type in the GraphQL API.
| Field | Type | Description |
|---|---|---|
sourceBranch | Branch! | |
targetBranchId | ID | Branch that receives the merge, or null for main. |
targetBranchName | String! | |
canMerge | Boolean! | True only when blockedReason is null, merge policies pass and no file has conflicts. Advisory: the merge checks these conditions again. |
blockedReason | String | Precondition that blocks the merge, such as a merged or closed branch, or a target that is the source branch or is closed; null when none does. A target that is missing or in another project is a not found error. |
hasConflicts | Boolean! | |
diffs | [BranchMergeFileDiff!]! |