From 312f8b2004e221bba0707dda4858b873b102ed5e Mon Sep 17 00:00:00 2001 From: Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> Date: Tue, 9 Apr 2019 11:55:46 +0100 Subject: [PATCH] Excavator: Update policy-bot config (#82) --- .policy.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.policy.yml b/.policy.yml index 638980f9..5c061a5d 100644 --- a/.policy.yml +++ b/.policy.yml @@ -1,29 +1,29 @@ policy: approval: - or: - - infra team approval - - infra team co-approval - - excavator only touched gradle files or versions.props + - repo owner approval + - repo owner co-approval + - excavator only touched baseline, gradle files or versions.props - excavator only touched package.json and lock files + disapproval: + requires: + organizations: [ "palantir" ] approval_rules: - - - name: infra team approval + - name: repo owner approval requires: count: 1 - teams: - - "palantir/infrastructure" + admins: true - # Require two *contributing* infra maintainers to approve changes - - name: infra team co-approval + # Require two *contributing* maintainers to approve changes + - name: repo owner co-approval options: allow_contributor: true requires: count: 2 - teams: - - "palantir/infrastructure" + admins: true - - name: excavator only touched gradle files or versions.props + - name: excavator only touched baseline, gradle files or versions.props requires: count: 0 if: @@ -31,10 +31,13 @@ approval_rules: users: [ "svc-excavator-bot" ] only_changed_files: paths: + - "^\\.baseline/.*$" - "^.*gradle$" - "^gradle/wrapper/.*" - "^gradlew$" - "^gradlew.bat$" + - "^gradle.properties$" + - "^settings.gradle$" - "^versions.props$" - "^versions.lock$"