From 2fb2ba7e5410b41b251af49584b8c976d5a75b84 Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Thu, 18 Mar 2021 20:39:54 +0100 Subject: [PATCH] update mergify team --- .github/mergify.yml | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index f9519cd9e0..2be2317943 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -1,3 +1,17 @@ +# Copyright The PyTorch Lightning team. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + pull_request_rules: - name: warn on conflicts @@ -22,12 +36,24 @@ pull_request_rules: label: remove: [ "has conflicts" ] + - name: update PR + conditions: + - -conflict + - -draft # filter-out GH draft PRs + - base=master # apply only on master + - -title~=(?i)wip # skip all PR that title contains “WIP” (ignoring case) + - "#approved-reviews-by>=1" # number of review approvals + actions: + update: {} + - name: add core reviewer conditions: - # number of review approvals - - "#approved-reviews-by<3" + - -conflict # skip if conflict + - -draft # filter-out GH draft PRs + - label="0:] Ready-To-Go" + - "#approved-reviews-by<2" # number of review approvals + - "#review-requested<2" # number of requested reviews actions: request_reviews: - users: - - Borda - - akihironitta + teams: + - "@PyTorchLightning/core-bolts"