branchMergePreview(branchId: ID!, targetBranchId: ID): BranchMergePreview!
Requires project.read.
Arguments
Response
Returns BranchMergePreview!. Open the type for its fields and nested types.
Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.
Example
query BranchMergePreview($branchId: ID!, $targetBranchId: ID) {
branchMergePreview(branchId: $branchId, targetBranchId: $targetBranchId) {
blockedReason
canMerge
hasConflicts
targetBranchId
targetBranchName
}
}{
"branchId": "00000000-0000-4000-8000-000000000001"
}