diff --git a/.policy.yml b/.policy.yml new file mode 100644 index 0000000000000..51815ce8b9cb9 --- /dev/null +++ b/.policy.yml @@ -0,0 +1,36 @@ +policy: + approval: + - or: + - maintainer approval + - excavator only touched build tooling or dependencies + disapproval: + requires: + teams: + - "palantir/spark" + +approval_rules: + + - name: maintainer approval + options: + allow_contributor: true + requires: + count: 1 + teams: + - "palantir/spark" + + - name: excavator only touched build tooling or dependencies + requires: + count: 0 + if: + has_author_in: + users: [ "svc-excavator-bot" ] + only_changed_files: + paths: + - "^\\.baseline/.*$" + - "^.*gradle$" + - "^gradle/wrapper/.*" + - "^gradlew.bat$" + - "^gradlew$" + - "^gradle.properties$" + - "^settings.gradle$" + - "^versions.props$"