gradle-graal/.policy.yml

54 lines
1.3 KiB
YAML
Raw Normal View History

2019-02-26 22:27:23 +00:00
policy:
approval:
- or:
- repo owner approval
- repo owner co-approval
2019-02-26 22:27:23 +00:00
- excavator only touched baseline, gradle files or versions.props
- excavator only touched package.json and lock files
disapproval:
requires:
organizations: [ "palantir" ]
approval_rules:
- name: repo owner approval
2019-02-26 22:27:23 +00:00
requires:
count: 1
admins: true
2019-02-26 22:27:23 +00:00
# Require two *contributing* maintainers to approve changes
- name: repo owner co-approval
2019-02-26 22:27:23 +00:00
options:
allow_contributor: true
requires:
count: 2
admins: true
2019-02-26 22:27:23 +00:00
- name: excavator only touched baseline, gradle files or versions.props
requires:
count: 0
if:
has_author_in:
users: [ "svc-excavator-bot" ]
only_changed_files:
paths:
- "^\\.baseline/.*$"
- "^.*gradle$"
- "^gradle/wrapper/.*"
- "^gradlew$"
- "^gradlew.bat$"
- "^gradle.properties$"
- "^settings.gradle$"
2019-02-26 22:27:23 +00:00
- "^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$"