Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
Update template mergify rules (#126)
Browse files Browse the repository at this point in the history
**NOTE** Merge with caution: once this is merged, the next propagation
of changes to the template repos won't auto-merge because Mergify
doesn't auto-merge when its rules are being changed. (tracked as #113)

For regular PRs:
* include CLA validation success
* block if more reviews are requested

For TemplateControl's PRs:
* block if more reviews are requested
* block if changes requested
* block on block-merged
  • Loading branch information
dwijnand authored Mar 6, 2019
1 parent f90a566 commit 3ba28f7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions templates/.mergify.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
pull_request_rules:
- name: automatic merge on CI success require review
- name: Merge PRs that are ready
conditions:
- status-success=Travis CI - Pull Request
- status-success=typesafe-cla-validator
- "#approved-reviews-by>=1"
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- label!=status:block-merge
actions:
merge:
method: squash
strict: smart

- name: automatic merge on CI success for TemplateControl
- name: Merge TemplateControl's PRs that are ready
conditions:
- status-success=Travis CI - Pull Request
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- label!=status:block-merge
- label=status:merge-when-green
- label!=status:block-merge
actions:
merge:
method: squash
strict: smart

- name: delete branch after merge
- name: Delete the PR branch after merge
conditions:
- merged
actions:
Expand Down

0 comments on commit 3ba28f7

Please sign in to comment.