Check branch merge eligibility

http
GET /projects/{project_reference}/branches/{branch_id}/merge-eligibility

Check policies, approvals and status checks to say whether a branch can merge now. Requires project.read.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
branch_idpathYes

Responses

StatusDescription
200Merge eligibility result. A branch that cannot merge is a result with blockers, not an error.
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.