github.com/palantir/godel-dep-plugin@v1.1.1-0.20201218041358-274eaa9b1310/.policy.yml (about) 1 # Excavator auto-updates this file. Please contribute improvements to the central template. 2 3 policy: 4 approval: 5 - or: 6 - one admin has approved (PR contributors not allowed) 7 - two admins have approved 8 - changelog only and contributor approval 9 - fixing excavator 10 - excavator only touched baseline, circle, gradle files, godel files, go dependencies, 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 has approved (PR contributors not allowed) 19 options: 20 allow_contributor: false 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, go dependencies, 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 - "^go.mod$" 74 - "^go.sum$" 75 - "^godelw$" 76 - "^godel/config/godel.properties$" 77 - "^godel/config/godel.yml$" 78 - "^vendor/.*$" 79 - "^versions.props$" 80 - "^versions.lock$" 81 82 - name: excavator only touched config files 83 requires: 84 count: 0 85 if: 86 has_author_in: 87 users: [ "svc-excavator-bot" ] 88 only_changed_files: 89 paths: 90 - "^\\..*.yml$" 91 - "^\\.github/.*$" 92 93 - name: bots updated package.json and lock files 94 requires: 95 count: 0 96 if: 97 has_author_in: 98 users: 99 - "svc-excavator-bot" 100 - "dependabot[bot]" 101 only_changed_files: 102 paths: 103 - "^.*yarn.lock$" 104 - "^.*package.json$"