List the merge policies of a project, which set the approvals and reviewers a branch needs. Requires project.read.
Arguments
inputBranchPolicyCollectionInput!requiredinput.projectReferenceString!requiredinput.limitIntPage size 1–100; defaults to 20.
input.cursorStringPrevious endCursor or previousCursor; retain the same project, principal, filter and page size.
input.enabledOnlyBooleanRestrict to enabled policies; defaults to false.
Responses
query BranchPolicyCollection($input: BranchPolicyCollectionInput!) { branchPolicyCollection(input: $input) { edges { cursor } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } previousCursor }}{ "data": { "branchPolicyCollection": { "edges": [ { "cursor": "string" } ], "pageInfo": { "hasNextPage": false, "hasPreviousPage": false, "startCursor": "string", "endCursor": "string" }, "previousCursor": "string" } }}The BranchPolicyCollection! in data.branchPolicyCollection.