capabilities.work

Update a repository protection rule

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

Get something done

Update a repository protection rule

with Harness
Works with AI assistants

Use Harness: its Harness Rules API lets you update a repository protection rule in a single step (PATCH /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.

  • Can I temporarily disable a protection rule on a repo without deleting it?
  • How do I change which branches a repository rule covers?
Say it to your AI assistant
  • Set repo rule {rule_identifier} in {repo_identifier} to state {state}.
  • Change the branch pattern of rule {rule_identifier} on repo {repo_identifier} to {pattern}.
For your developer

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