2020-08-01 09:35:05 +00:00
|
|
|
# Copyright The Lightning AI team.
|
2020-08-20 02:03:22 +00:00
|
|
|
#
|
2020-03-24 18:50:55 +00:00
|
|
|
# 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
|
2020-08-20 02:03:22 +00:00
|
|
|
#
|
2020-03-30 22:32:52 +00:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2020-08-20 02:03:22 +00:00
|
|
|
#
|
2020-03-24 18:50:55 +00:00
|
|
|
# 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.
|
2020-08-20 02:03:22 +00:00
|
|
|
|
2021-01-14 15:53:12 +00:00
|
|
|
pull_request_rules:
|
|
|
|
|
|
|
|
- name: warn on conflicts
|
|
|
|
conditions:
|
|
|
|
- conflict
|
|
|
|
- -draft # filter-out GH draft PRs
|
|
|
|
- -label="has conflicts"
|
|
|
|
actions:
|
|
|
|
# comment:
|
|
|
|
# message: This pull request is now in conflict... :(
|
|
|
|
label:
|
|
|
|
add: [ "has conflicts" ]
|
|
|
|
|
|
|
|
- name: resolved conflicts
|
|
|
|
conditions:
|
|
|
|
- -conflict
|
|
|
|
- label="has conflicts"
|
|
|
|
- -draft # filter-out GH draft PRs
|
|
|
|
- -merged # not merged yet
|
|
|
|
- -closed
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove: [ "has conflicts" ]
|
|
|
|
|
2021-07-19 11:42:21 +00:00
|
|
|
- name: Ready to Go
|
|
|
|
conditions:
|
|
|
|
- -conflict
|
|
|
|
- -draft # filter-out GH draft PRs
|
|
|
|
- -title~=(?i)wip # skip all PR that title contains “WIP” (ignoring case)
|
2021-07-20 09:40:40 +00:00
|
|
|
- "#approved-reviews-by>=2" # number of review approvals
|
2021-07-19 11:42:21 +00:00
|
|
|
- "#changes-requested-reviews-by=0" # no requested changes
|
|
|
|
actions:
|
|
|
|
label:
|
2021-11-15 14:15:17 +00:00
|
|
|
add: [ "ready" ]
|
2021-07-19 11:42:21 +00:00
|
|
|
|
|
|
|
- name: Not ready yet
|
|
|
|
conditions:
|
|
|
|
- or:
|
2022-11-22 09:12:58 +00:00
|
|
|
- draft # filter-out GH draft PRs
|
2022-03-22 10:06:36 +00:00
|
|
|
- label="has conflicts"
|
2021-07-19 11:42:21 +00:00
|
|
|
- "#approved-reviews-by=0" # number of review approvals
|
|
|
|
- "#changes-requested-reviews-by>=1" # no requested changes
|
|
|
|
actions:
|
|
|
|
label:
|
2021-11-15 14:15:17 +00:00
|
|
|
remove: [ "ready" ]
|
2021-01-14 15:53:12 +00:00
|
|
|
|
|
|
|
- name: add core reviewer
|
|
|
|
conditions:
|
|
|
|
- -conflict # skip if conflict
|
|
|
|
- -draft # filter-out GH draft PRs
|
2021-11-15 14:15:17 +00:00
|
|
|
- label="ready"
|
2022-08-19 14:05:23 +00:00
|
|
|
- "#approved-reviews-by<2" # number of review approvals
|
|
|
|
- "#review-requested<2" # number of requested reviews
|
2021-01-14 15:53:12 +00:00
|
|
|
actions:
|
|
|
|
request_reviews:
|
|
|
|
teams:
|
2022-06-15 23:33:43 +00:00
|
|
|
- "@Lightning-AI/core-lightning"
|