repositories

get branch protection rules

get/repositories/{repository}/settings/branch_protection

Response

branch protection rules

patternstring required

fnmatch pattern for the branch name, supporting * and ? wildcards

Example response

[
  {
    "pattern": "stable_*"
  }
]