Skip to content

Commit 322a976

Browse files
Excavator: Update policy-bot config (#850)
* Excavator: Update policy-bot config * Update .policy.yml Co-authored-by: svc-excavator-bot <[email protected]> Co-authored-by: Marko Bakovic <[email protected]>
1 parent 60012f4 commit 322a976

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

.policy.yml

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Excavator auto-updates this file. Please contribute improvements to the central template.
2+
3+
policy:
4+
approval:
5+
- or:
6+
- one admin or contributor has approved
7+
- two admins have approved
8+
- changelog only and contributor approval
9+
- fixing excavator
10+
- excavator only touched baseline, circle, gradle files, godel files, docker-compose-rule config or versions.props
11+
- excavator only touched config files
12+
- bots updated package.json and lock files
13+
disapproval:
14+
requires:
15+
organizations: [ "palantir" ]
16+
17+
approval_rules:
18+
- name: one admin or contributor has approved
19+
options:
20+
allow_contributor: true
21+
requires:
22+
count: 1
23+
admins: true
24+
25+
- name: two admins have approved
26+
options:
27+
allow_contributor: true
28+
requires:
29+
count: 2
30+
admins: true
31+
32+
- name: changelog only and contributor approval
33+
options:
34+
allow_contributor: true
35+
requires:
36+
count: 1
37+
admins: true
38+
if:
39+
only_changed_files:
40+
paths:
41+
- "changelog/@unreleased/.*\\.yml"
42+
43+
- name: fixing excavator
44+
options:
45+
allow_contributor: true
46+
requires:
47+
count: 1
48+
admins: true
49+
if:
50+
has_author_in:
51+
users: [ "svc-excavator-bot" ]
52+
53+
- name: excavator only touched baseline, circle, gradle files, godel files, docker-compose-rule config or versions.props
54+
requires:
55+
count: 0
56+
if:
57+
has_author_in:
58+
users: [ "svc-excavator-bot" ]
59+
only_changed_files:
60+
# product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
61+
# this way excavator cannot change the deployability of a service or product via auto-merge
62+
paths:
63+
- "changelog/@unreleased/.*\\.yml"
64+
- "^\\.baseline/.*$"
65+
- "^\\.circleci/.*$"
66+
- "^\\.docker-compose-rule\\.yml$"
67+
- "^.*gradle$"
68+
- "^gradle/wrapper/.*"
69+
- "^gradlew$"
70+
- "^gradlew.bat$"
71+
- "^gradle.properties$"
72+
- "^settings.gradle$"
73+
- "^godelw$"
74+
- "^godel/config/godel.properties$"
75+
- "^versions.props$"
76+
- "^versions.lock$"
77+
78+
- name: excavator only touched config files
79+
requires:
80+
count: 0
81+
if:
82+
has_author_in:
83+
users: [ "svc-excavator-bot" ]
84+
only_changed_files:
85+
paths:
86+
- "^\\..*.yml$"
87+
- "^\\.github/.*$"
88+
89+
- name: bots updated package.json and lock files
90+
requires:
91+
count: 0
92+
if:
93+
has_author_in:
94+
users:
95+
- "svc-excavator-bot"
96+
- "dependabot[bot]"
97+
only_changed_files:
98+
paths:
99+
- "^.*yarn.lock$"
100+
- "^.*package.json$"

0 commit comments

Comments
 (0)