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.
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) |