capabilities.work

List a repository's protection rules

One step with Harness. We can help you get access.

Look something up

List a repository's protection rules

with Harness
Works with AI assistants

Use Harness: its Harness Rules API lets you list a repository's protection rules in a single step (GET /code/api/v1/repos/{repo_identifier}/rules). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • What branch protection rules apply to one Harness Code repository?
  • Can I include rules a repo inherits from its project or org when listing them?
Say it to your AI assistant
  • List the protection rules on repo {repo_identifier}.
  • Show protection rules of type {type} for repo {repo_identifier}, including inherited ones.
For your developer

GET /code/api/v1/repos/{repo_identifier}/rules in Harness Rules API. Full spec on APIs.io.