| Field | Type | Required | Description |
|---|---|---|---|
projectReference | String | No | |
projectId | ID | No | Deprecated: Use projectReference. |
name | String! | Yes | |
isEnabled | Boolean | No | Enable this policy. Null and omission use the true default. |
targetBranchPattern | String | No | |
requiredApprovals | Int | No | Required approval count. Null and omission default to 0; MCP create_branch_policy defaults to 1. |
allowSelfApproval | Boolean | No | Allow the merger’s approval to count. Null and omission default to true; MCP create_branch_policy defaults to false. |
requiredReviewerIds | [String!] | No | Reviewer UUIDs required for merge. Null and omission impose no specific reviewers; an empty list is accepted. |