2019-09-19 14:53:32 +00:00
|
|
|
# Excavator auto-updates this file. Please contribute improvements to the central template.
|
|
|
|
|
2019-02-26 22:27:23 +00:00
|
|
|
policy:
|
|
|
|
approval:
|
|
|
|
- or:
|
2019-09-19 14:53:32 +00:00
|
|
|
- one admin has approved (PR contributors not allowed)
|
|
|
|
- two admins have approved
|
|
|
|
- changelog only and contributor approval
|
|
|
|
- fixing excavator
|
2022-09-16 05:25:44 +00:00
|
|
|
- excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props
|
2019-09-19 14:53:32 +00:00
|
|
|
- excavator only touched config files
|
2019-10-14 20:47:38 +00:00
|
|
|
- bots updated package.json and lock files
|
2019-02-26 22:27:23 +00:00
|
|
|
disapproval:
|
|
|
|
requires:
|
|
|
|
organizations: [ "palantir" ]
|
|
|
|
|
|
|
|
approval_rules:
|
2019-12-04 22:13:48 +00:00
|
|
|
- name: one admin has approved (PR contributors not allowed)
|
|
|
|
options:
|
|
|
|
allow_contributor: false
|
|
|
|
requires:
|
2019-02-26 22:27:23 +00:00
|
|
|
count: 1
|
2019-08-02 01:04:53 +00:00
|
|
|
admins: true
|
2019-02-26 22:27:23 +00:00
|
|
|
|
2019-09-19 14:53:32 +00:00
|
|
|
- name: two admins have approved
|
2019-02-26 22:27:23 +00:00
|
|
|
options:
|
|
|
|
allow_contributor: true
|
|
|
|
requires:
|
|
|
|
count: 2
|
2019-08-02 01:04:53 +00:00
|
|
|
admins: true
|
2019-02-26 22:27:23 +00:00
|
|
|
|
2019-09-19 14:53:32 +00:00
|
|
|
- name: changelog only and contributor approval
|
|
|
|
options:
|
|
|
|
allow_contributor: true
|
|
|
|
requires:
|
|
|
|
count: 1
|
|
|
|
admins: true
|
|
|
|
if:
|
|
|
|
only_changed_files:
|
|
|
|
paths:
|
|
|
|
- "changelog/@unreleased/.*\\.yml"
|
|
|
|
|
|
|
|
- name: fixing excavator
|
|
|
|
options:
|
|
|
|
allow_contributor: true
|
|
|
|
requires:
|
|
|
|
count: 1
|
|
|
|
admins: true
|
|
|
|
if:
|
|
|
|
has_author_in:
|
|
|
|
users: [ "svc-excavator-bot" ]
|
|
|
|
|
2022-09-16 05:25:44 +00:00
|
|
|
- name: excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props
|
2019-02-26 22:27:23 +00:00
|
|
|
requires:
|
|
|
|
count: 0
|
|
|
|
if:
|
|
|
|
has_author_in:
|
|
|
|
users: [ "svc-excavator-bot" ]
|
|
|
|
only_changed_files:
|
2019-09-19 14:53:32 +00:00
|
|
|
# product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
|
|
|
|
# this way excavator cannot change the deployability of a service or product via auto-merge
|
2019-02-26 22:27:23 +00:00
|
|
|
paths:
|
2019-09-19 14:53:32 +00:00
|
|
|
- "changelog/@unreleased/.*\\.yml"
|
2019-02-26 22:27:23 +00:00
|
|
|
- "^\\.baseline/.*$"
|
2019-09-19 14:53:32 +00:00
|
|
|
- "^\\.circleci/.*$"
|
|
|
|
- "^\\.docker-compose-rule\\.yml$"
|
2019-02-26 22:27:23 +00:00
|
|
|
- "^.*gradle$"
|
2022-02-14 06:11:38 +00:00
|
|
|
- "^\\.palantir/go-version$"
|
2019-02-26 22:27:23 +00:00
|
|
|
- "^gradle/wrapper/.*"
|
|
|
|
- "^gradlew$"
|
|
|
|
- "^gradlew.bat$"
|
2019-08-02 01:04:53 +00:00
|
|
|
- "^gradle.properties$"
|
|
|
|
- "^settings.gradle$"
|
2022-09-28 23:01:03 +00:00
|
|
|
- "^.*go.mod$"
|
|
|
|
- "^.*go.sum$"
|
|
|
|
- "^.*godelw$"
|
|
|
|
- "^.*godel/config/godel.properties$"
|
|
|
|
- "^.*godel/config/godel.yml$"
|
|
|
|
- "^.*vendor/.*$"
|
2019-02-26 22:27:23 +00:00
|
|
|
- "^versions.props$"
|
|
|
|
- "^versions.lock$"
|
2022-09-16 05:25:44 +00:00
|
|
|
- "^internal/generated/.*"
|
|
|
|
- "^internal/generated_src/.*"
|
2021-06-20 06:38:52 +00:00
|
|
|
has_valid_signatures_by_keys:
|
|
|
|
key_ids: ["C9AF124A484882E0"]
|
2019-02-26 22:27:23 +00:00
|
|
|
|
2019-09-19 14:53:32 +00:00
|
|
|
- name: excavator only touched config files
|
|
|
|
requires:
|
|
|
|
count: 0
|
|
|
|
if:
|
|
|
|
has_author_in:
|
|
|
|
users: [ "svc-excavator-bot" ]
|
|
|
|
only_changed_files:
|
|
|
|
paths:
|
|
|
|
- "^\\..*.yml$"
|
|
|
|
- "^\\.github/.*$"
|
2021-06-20 06:38:52 +00:00
|
|
|
has_valid_signatures_by_keys:
|
|
|
|
key_ids: ["C9AF124A484882E0"]
|
2019-09-19 14:53:32 +00:00
|
|
|
|
2019-10-14 20:47:38 +00:00
|
|
|
- name: bots updated package.json and lock files
|
2019-02-26 22:27:23 +00:00
|
|
|
requires:
|
|
|
|
count: 0
|
|
|
|
if:
|
|
|
|
has_author_in:
|
2019-10-14 20:47:38 +00:00
|
|
|
users:
|
|
|
|
- "svc-excavator-bot"
|
|
|
|
- "dependabot[bot]"
|
2019-02-26 22:27:23 +00:00
|
|
|
only_changed_files:
|
|
|
|
paths:
|
|
|
|
- "^.*yarn.lock$"
|
|
|
|
- "^.*package.json$"
|
2021-06-20 06:38:52 +00:00
|
|
|
has_valid_signatures_by_keys:
|
|
|
|
key_ids: ["C9AF124A484882E0"]
|