| file_type | documentation | ||||
|---|---|---|---|---|---|
| title | GitHub Branch Rulesets Configuration | ||||
| description | Overview and instructions for importing/updating the repository branch rulesets. | ||||
| last_updated | 2026-06-18 | ||||
| owners |
|
||||
| version | v1.1 | ||||
| status | active | ||||
| stability | stable | ||||
| domain | governance | ||||
| tags |
|
||||
| language | en |
This directory contains version-controlled JSON definitions of the GitHub repository rulesets applied to the main protected branches: main and develop.
1. develop Branch Ruleset (develop.ruleset.json)
- Target Ref:
refs/heads/develop - Enforcement: Active
- Key Rules:
- Deletion blocked
- Non-fast-forward merges (force pushes) blocked
- Pull request required before merging (1 approval, dismiss stale approvals, resolve conversations, respect Code Owners)
- Required status checks:
Validate PR Template / validate-pr-templateCI • Unified Checks (Lint, Test, Validate) / All Checks Passed
2. main Branch Ruleset (main.ruleset.json)
- Target Ref:
refs/heads/main - Enforcement: Active
- Key Rules:
- Deletion blocked
- Non-fast-forward merges (force pushes) blocked
- Pull request required before merging (1 approval, dismiss stale approvals, resolve conversations, respect Code Owners)
- Required status check:
validate-release-branch(enforcing only release/hotfix merges)
Since GitHub rulesets are configured via the GitHub platform settings, these JSON files serve as version-controlled declarations.
To apply or update rulesets:
- Navigating to the repository settings page on GitHub.
- Select Rules -> Rulesets from the sidebar.
- Import the ruleset definition using these JSON files, or configure them to match.