Get a repository protection rule
One step with Harness. We can help you get access.
Look something up
Get a repository protection rule
with Harness
Works with AI assistants
Use Harness: its Harness Rules API lets you get a repository protection rule in a single step (GET /code/api/v1/repos/{repo_identifier}/rules/{rule_identifier}). 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 exactly does a given protection rule on my repo enforce?
- Is a particular repo rule active or disabled?
Say it to your AI assistant
- Show protection rule {rule_identifier} on repo {repo_identifier}.
- Fetch the definition of repo rule {rule_identifier} in {repo_identifier}.
For your developer
GET /code/api/v1/repos/{repo_identifier}/rules/{rule_identifier} in Harness Rules API. Full spec on APIs.io.