-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Excavator: Update policy-bot config (#64)
###### _excavator_ is a bot for automating changes across repositories. Changes produced by the excavator/policy-bot-oss check. {runtimeCheckDesc} To enable or disable this check, please contact the maintainers of Excavator.
- Loading branch information
1 parent
b4dc341
commit b39e8f4
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
policy: | ||
approval: | ||
- or: | ||
- infra team approval | ||
- infra team co-approval | ||
- excavator only touched gradle files or versions.props | ||
- excavator only touched package.json and lock files | ||
|
||
approval_rules: | ||
|
||
- name: infra team approval | ||
requires: | ||
count: 1 | ||
teams: | ||
- "palantir/infrastructure" | ||
|
||
# Require two *contributing* infra maintainers to approve changes | ||
- name: infra team co-approval | ||
options: | ||
allow_contributor: true | ||
requires: | ||
count: 2 | ||
teams: | ||
- "palantir/infrastructure" | ||
|
||
- name: excavator only touched gradle files or versions.props | ||
requires: | ||
count: 0 | ||
if: | ||
has_author_in: | ||
users: [ "svc-excavator-bot" ] | ||
only_changed_files: | ||
paths: | ||
- "^.*gradle$" | ||
- "^gradle/wrapper/.*" | ||
- "^gradlew$" | ||
- "^gradlew.bat$" | ||
- "^versions.props$" | ||
- "^versions.lock$" | ||
|
||
- name: excavator only touched package.json and lock files | ||
requires: | ||
count: 0 | ||
if: | ||
has_author_in: | ||
users: [ "svc-excavator-bot" ] | ||
only_changed_files: | ||
paths: | ||
- "^.*yarn.lock$" | ||
- "^.*package.json$" |