From d3b94ab061acb99eaa931380c75697dbe7af4a58 Mon Sep 17 00:00:00 2001 From: Qbandev Date: Fri, 6 Mar 2026 14:43:07 +0100 Subject: [PATCH] fix(INFRA-3390): remove policy-bot governance policy Co-Authored-By: Claude Opus 4.6 --- policy.yml | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 policy.yml diff --git a/policy.yml b/policy.yml deleted file mode 100644 index 9ee43ee..0000000 --- a/policy.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Shared policy-bot configuration for MetaMask org. -# Applied to all repos where the GitHub App is installed -# and no local .policy.yml exists. -# -# Docs: https://github.com/palantir/policy-bot#approval-rules - -policy: - approval: - - or: - - "cherry-pick auto-approval" - - "release branch review" - - "non-release fallback" - -approval_rules: - - name: "cherry-pick auto-approval" - description: "Auto-approve cherry-pick PRs to release branches that meet all criteria" - if: - title: - matches: - - "(?i)cherry.?pick" - targets_branch: - pattern: "^release/.*$" - modified_lines: - total: "< 200" - requires: - count: 0 - - - name: "release branch review" - description: "Require release-team review for all PRs targeting release branches" - if: - targets_branch: - pattern: "^release/.*$" - requires: - count: 1 - teams: - - "MetaMask/release-team" - - # RE2-compatible negation of "^release/.*$" (Go regexp does not support lookaheads). - # Matches any branch name that does NOT start with "release/". - - name: "non-release fallback" - description: "Auto-approve PRs targeting non-release branches so policy-bot posts a clean status" - if: - targets_branch: - pattern: "^([^r]|r[^e]|re[^l]|rel[^e]|rele[^a]|relea[^s]|releas[^e]|release[^/]).*$|^.{0,7}$" - requires: - count: 0