Skip to content

Commit 814a763

Browse files
authored
feat(INFRA-3357): add policy-bot governance policy (#81)
Cherry-pick auto-approval for release branches + standard human review fallback.
1 parent 36a7b64 commit 814a763

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

policy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Shared policy-bot configuration for MetaMask org.
2+
# Applied to all repos where the GitHub App is installed
3+
# and no local .policy.yml exists.
4+
#
5+
# Docs: https://github.com/palantir/policy-bot#approval-rules
6+
7+
policy:
8+
approval:
9+
- or:
10+
- "cherry-pick auto-approval"
11+
- "standard human review"
12+
13+
approval_rules:
14+
- name: "cherry-pick auto-approval"
15+
description: "Auto-approve cherry-pick PRs to release branches that meet all criteria"
16+
if:
17+
title:
18+
matches:
19+
- "(?i)cherry.?pick"
20+
targets_branch:
21+
pattern: "^release/.*$"
22+
modified_lines:
23+
total: "< 200"
24+
requires:
25+
count: 0
26+
27+
- name: "standard human review"
28+
description: "Default team-based review for all other PRs"
29+
requires:
30+
count: 1
31+
teams:
32+
- "MetaMask/release-team"

0 commit comments

Comments
 (0)