diff --git a/.github/rulesets/main.json b/.github/rulesets/main.json new file mode 100644 index 000000000..8ad311603 --- /dev/null +++ b/.github/rulesets/main.json @@ -0,0 +1,74 @@ +{ + "name": "main branch protection", + "target": "branch", + "enforcement": "active", + "conditions": { + "ref_name": { + "include": ["~DEFAULT_BRANCH"], + "exclude": [] + } + }, + "rules": [ + { + "type": "deletion" + }, + { + "type": "non_fast_forward" + }, + { + "type": "pull_request", + "parameters": { + "required_approving_review_count": 1, + "dismiss_stale_reviews_on_push": true, + "require_code_owner_review": false, + "require_last_push_approval": false, + "required_review_thread_resolution": false + } + }, + { + "type": "required_status_checks", + "parameters": { + "required_status_checks": [ + { + "context": "pcsx-redux Windows build", + "integration_id": 9426 + }, + { + "context": "pcsx-redux Bios build", + "integration_id": 9426 + }, + { + "context": "pcsx-redux Windows CLI build", + "integration_id": 9426 + }, + { + "context": "build-openbios", + "integration_id": 15368 + }, + { + "context": "build", + "integration_id": 15368 + }, + { + "context": "coverage", + "integration_id": 15368 + }, + { + "context": "cross-arm64", + "integration_id": 15368 + }, + { + "context": "asan", + "integration_id": 15368 + }, + { + "context": "toolchain", + "integration_id": 15368 + } + ], + "strict_required_status_checks_policy": false, + "do_not_enforce_on_create": false + } + } + ] +}