apply_ruleset
Apply a branch protection ruleset to a GitHub repository. Preview changes with dry run before applying.
Instructions
Apply a branch protection ruleset to a GitHub repository. Use dry_run=true (default) to preview changes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "apply_ruleset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or org) | |
| dry_run | No | Preview changes without applying (default: true) | |
| template | No | Template name: standard, strict, relaxed, or controlled | |
| custom_ruleset | No | Custom ruleset JSON (overrides template if provided) |