From 28d886c0ff4a4c24df685fdb53fd3c75a162defa Mon Sep 17 00:00:00 2001 From: Chris Bassey Date: Sun, 29 Jun 2025 09:14:16 +0200 Subject: [PATCH] adding branch protection rules --- branch_rules/Protect main.json | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 branch_rules/Protect main.json diff --git a/branch_rules/Protect main.json b/branch_rules/Protect main.json new file mode 100644 index 0000000..73449f4 --- /dev/null +++ b/branch_rules/Protect main.json @@ -0,0 +1,57 @@ +{ + "id": 6178158, + "name": "Protect main", + "target": "branch", + "source_type": "Repository", + "source": "SamsonIdowu/DaC", + "enforcement": "active", + "conditions": { + "ref_name": { + "exclude": [], + "include": [ + "refs/heads/main" + ] + } + }, + "rules": [ + { + "type": "deletion" + }, + { + "type": "required_signatures" + }, + { + "type": "creation" + }, + { + "type": "pull_request", + "parameters": { + "required_approving_review_count": 0, + "dismiss_stale_reviews_on_push": false, + "require_code_owner_review": false, + "require_last_push_approval": false, + "required_review_thread_resolution": false, + "automatic_copilot_code_review_enabled": false, + "allowed_merge_methods": [ + "merge", + "squash", + "rebase" + ] + } + }, + { + "type": "required_status_checks", + "parameters": { + "strict_required_status_checks_policy": true, + "do_not_enforce_on_create": false, + "required_status_checks": [ + { + "context": "check-rule-ids", + "integration_id": 15368 + } + ] + } + } + ], + "bypass_actors": [] +} \ No newline at end of file