From d94db052681ead0c40e817f83340e3de0ce9776f Mon Sep 17 00:00:00 2001 From: Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> Date: Thu, 4 May 2023 11:30:40 +0100 Subject: [PATCH] Excavator: Update policy-bot config (#90) --- .policy.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.policy.yml b/.policy.yml index 7d7e935..d8f732c 100644 --- a/.policy.yml +++ b/.policy.yml @@ -7,7 +7,7 @@ policy: - two admins have approved - changelog only and contributor approval - fixing excavator - - excavator only touched baseline, circle, gradle files, godel files, go dependencies, docker-compose-rule config or versions.props + - excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props - excavator only touched config files - bots updated package.json and lock files disapproval: @@ -20,21 +20,21 @@ approval_rules: allow_contributor: false requires: count: 1 - admins: true + permissions: ["admin", "maintain"] - name: two admins have approved options: allow_contributor: true requires: count: 2 - admins: true + permissions: ["admin", "maintain"] - name: changelog only and contributor approval options: allow_contributor: true requires: count: 1 - admins: true + permissions: ["admin", "maintain"] if: only_changed_files: paths: @@ -45,12 +45,12 @@ approval_rules: allow_contributor: true requires: count: 1 - admins: true + permissions: ["admin", "maintain"] if: has_author_in: users: [ "svc-excavator-bot" ] - - name: excavator only touched baseline, circle, gradle files, godel files, go dependencies, docker-compose-rule config or versions.props + - name: excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props requires: count: 0 if: @@ -71,14 +71,17 @@ approval_rules: - "^gradlew.bat$" - "^gradle.properties$" - "^settings.gradle$" - - "^go.mod$" - - "^go.sum$" - - "^godelw$" - - "^godel/config/godel.properties$" - - "^godel/config/godel.yml$" - - "^vendor/.*$" + - "^.*go.mod$" + - "^.*go.sum$" + - "^.*godelw$" + - "^.*godel/config/godel.properties$" + - "^.*godel/config/godel.yml$" + - "^.*vendor/.*$" - "^versions.props$" - "^versions.lock$" + - "^internal/generated/.*" + - "^internal/generated_src/.*" + - "^gradle-baseline-java/src/main/resources/checkstyle.version$" has_valid_signatures_by_keys: key_ids: ["C9AF124A484882E0"]