Skip to content

Commit bd52929

Browse files
committed
Add policy-bot configuration file
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent 86c250a commit bd52929

1 file changed

Lines changed: 85 additions & 0 deletions

File tree

policy.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: Copyright the Vortex contributors
3+
4+
---
5+
policy:
6+
approval:
7+
- or:
8+
- a vortex committer has approved
9+
- an untouched renovate pull request has an allowed approval
10+
- claude or codex authored pull requests have two committer approvals
11+
disapproval:
12+
options:
13+
methods:
14+
disapprove:
15+
comments:
16+
- ":-1:"
17+
- "-1"
18+
- "👎"
19+
github_review: true
20+
revoke:
21+
comments:
22+
- ":+1:"
23+
- "+1"
24+
- "👍"
25+
github_review: true
26+
requires:
27+
teams:
28+
- "vortex-data/committers"
29+
30+
approval_defaults:
31+
options:
32+
# Allow explicit PR comments and GitHub reviews, but not PR body text.
33+
methods:
34+
comments:
35+
- ":+1:"
36+
- "+1"
37+
- "👍"
38+
comment_patterns: []
39+
github_review: true
40+
github_review_comment_patterns: []
41+
body_patterns: []
42+
allow_author: false
43+
allow_contributor: false
44+
allow_non_author_contributor: true
45+
invalidate_on_push: false
46+
47+
approval_rules:
48+
- name: a vortex committer has approved
49+
description: "Requires approval from the Committers team."
50+
requires:
51+
count: 1
52+
teams:
53+
- "vortex-data/committers"
54+
55+
- name: an untouched renovate pull request has an allowed approval
56+
description: "Allows approval by renovate-approve or a committer only when every commit in the PR is still Renovate-authored or Renovate-committed."
57+
if:
58+
has_author_in:
59+
users:
60+
- "renovate[bot]"
61+
only_has_contributors_in:
62+
users:
63+
- "renovate[bot]"
64+
options:
65+
allow_author: true
66+
allow_contributor: true
67+
requires:
68+
count: 1
69+
users:
70+
- "renovate-approve[bot]"
71+
teams:
72+
- "vortex-data/committers"
73+
74+
- name: claude or codex authored pull requests have two committer approvals
75+
if:
76+
has_author_in:
77+
users:
78+
- "vortex-claude[bot]"
79+
- "claude-code[bot]"
80+
- "codex[bot]"
81+
- "openai-codex[bot]"
82+
requires:
83+
count: 2
84+
teams:
85+
- "vortex-data/committers"

0 commit comments

Comments
 (0)