Skip to content

Commit

Permalink
Excavator: Update policy-bot config (#64)
Browse files Browse the repository at this point in the history
###### _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
svc-excavator-bot authored and bulldozer-bot[bot] committed Nov 9, 2018
1 parent b4dc341 commit b39e8f4
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .policy.yml
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$"

0 comments on commit b39e8f4

Please sign in to comment.