branchPolicyCollection

List the merge policies of a project, which set the approvals and reviewers a branch needs. Requires project.read.

Arguments

  • inputBranchPolicyCollectionInput!required

  • input.projectReferenceString!required

  • input.limitInt

    Page size 1–100; defaults to 20.

  • input.cursorString

    Previous endCursor or previousCursor; retain the same project, principal, filter and page size.

  • input.enabledOnlyBoolean

    Restrict 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.