v1

latestOpenAPI 3.1.02026-07-261344388.3 KB
Branches

Get merge preview

Previews the result of merging a branch into main, including any conflicts.

get/api/projects/{projectId}/branches/{branchId}/merge-preview

Path parameters

projectIdstring uuid required

Project ID

string uuid required
OR
'main' required

Branch ID or "main" for the default branch

Response

Merge preview result

canMergeboolean required

Whether the branch can be merged without conflicts

isUpToDateboolean required

Whether the branch is up to date with main

needsRebaseboolean required

Whether the branch needs to be rebased

messagestring required

Human-readable merge status message