From 3641fd984a1742d04518b7a960df9e821eec00b7 Mon Sep 17 00:00:00 2001 From: randypanding <66171646+randypanding@users.noreply.github.com> Date: Tue, 18 Aug 2026 12:50:12 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20main-protection=20=E5=BC=80=E5=90=AF=20?= =?UTF-8?q?require=5Fcode=5Fowner=5Freview=EF=BC=88ADR-0010=20=E6=89=B9?= =?UTF-8?q?=E6=AC=A14=20=E9=83=A8=E7=BD=B2=E9=A1=B9=EF=BC=9BCODEOWNERS=20?= =?UTF-8?q?=E5=B7=B2=E9=9A=8F=20#13/#5=20=E5=90=88=E5=B9=B6=E5=B0=B1?= =?UTF-8?q?=E4=BD=8D=E2=80=94=E2=80=94CT-CUR-002=20=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E9=98=B2=E7=BA=BF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- governance/rulesets/main-protection.json | 48 +++++++++++++++++++----- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/governance/rulesets/main-protection.json b/governance/rulesets/main-protection.json index 7611975..aec9573 100644 --- a/governance/rulesets/main-protection.json +++ b/governance/rulesets/main-protection.json @@ -3,25 +3,49 @@ "target": "branch", "enforcement": "active", "conditions": { - "ref_name": { "include": ["~DEFAULT_BRANCH"], "exclude": [] }, - "repository_name": { "include": ["~ALL"], "exclude": ["AI_Web_School"] } + "ref_name": { + "include": [ + "~DEFAULT_BRANCH" + ], + "exclude": [] + }, + "repository_name": { + "include": [ + "~ALL" + ], + "exclude": [ + "AI_Web_School" + ] + } }, "bypass_actors": [ - { "actor_id": null, "actor_type": "OrganizationAdmin", "bypass_mode": "always" } + { + "actor_id": null, + "actor_type": "OrganizationAdmin", + "bypass_mode": "always" + } ], "rules": [ - { "type": "deletion" }, - { "type": "non_fast_forward" }, - { "type": "required_linear_history" }, + { + "type": "deletion" + }, + { + "type": "non_fast_forward" + }, + { + "type": "required_linear_history" + }, { "type": "pull_request", "parameters": { "required_approving_review_count": 0, "dismiss_stale_reviews_on_push": true, - "require_code_owner_review": false, + "require_code_owner_review": true, "require_last_push_approval": false, "required_review_thread_resolution": true, - "allowed_merge_methods": ["squash"] + "allowed_merge_methods": [ + "squash" + ] } }, { @@ -29,8 +53,12 @@ "parameters": { "strict_required_status_checks_policy": false, "do_not_enforce_on_create": true, - "required_status_checks": [{ "context": "gate" }] + "required_status_checks": [ + { + "context": "gate" + } + ] } } ] -} +} \ No newline at end of file