BranchMergePreview

The file-by-file changes a merge applies, with the verdict the merge would reach.

FieldTypeDescription
sourceBranchBranch!
targetBranchIdIDBranch that receives the merge, or null for main.
targetBranchNameString!
canMergeBoolean!True only when blockedReason is null, merge policies pass and no file has conflicts. Advisory: the merge checks these conditions again.
blockedReasonStringPrecondition 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.
hasConflictsBoolean!
diffs[BranchMergeFileDiff!]!

All GraphQL types · Operations