Add a protection rule for an account, org or project
One step with Harness. We can help you get access.
Get something done
Add a protection rule for an account, org or project
with Harness
Works with AI assistants
Use Harness: its Harness Rules API lets you add a protection rule for an account, org or project in a single step (POST /code/api/v1/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.
- How do I enforce one branch protection rule across every repo in a project?
- Can an org-wide rule target only some repositories?
Say it to your AI assistant
- Add an org-wide protection rule {identifier} matching branches {pattern}.
- Create a project-level rule {identifier} in account {account} that targets repos {repo_target}.
For your developer
POST /code/api/v1/rules in Harness Rules API. Full spec on APIs.io.