summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Izraelevitz2019-11-22 13:04:17 -0800
committerGitHub2019-11-22 13:04:17 -0800
commit4a4abfc56c7aec8113b9c74b7a98a5cb775aa9b5 (patch)
tree1a30e5cade20bc6b0e9391855cb6fbea04b36196
parent185710d07e13f383924873cb26c2f08f4d7a18d9 (diff)
Create .mergify.yml (#1244)
-rw-r--r--.mergify.yml72
1 files changed, 72 insertions, 0 deletions
diff --git a/.mergify.yml b/.mergify.yml
new file mode 100644
index 00000000..e0811257
--- /dev/null
+++ b/.mergify.yml
@@ -0,0 +1,72 @@
+pull_request_rules:
+ - name: remove outdated reviews
+ conditions:
+ - base=master
+ actions:
+ dismiss_reviews:
+
+pull_request_rules:
+ - name: automatic squash-and-merge on CI success and review
+ conditions:
+ - status-success=1 - compile
+ - status-success=2 - checkstyle
+ - status-success=2 - test
+ - "status-success=ci/circleci: build-firrtl"
+ - "status-success=ci/circleci: build-prep"
+ - "status-success=ci/circleci: checkstyle-chisel"
+ - "status-success=ci/circleci: test-chisel-2_11"
+ - "status-success=ci/circleci: test-chisel-2_12"
+ - status-success=license/cla
+ - status-success=pull request checks
+ - "#approved-reviews-by>=1"
+ - "#changes-requested-reviews-by=0"
+ - base=master
+ - label="Please Merge"
+ - label!="DO NOT MERGE"
+ actions:
+ merge:
+ method: squash
+ strict: smart
+ strict_method: merge
+
+ - name: backport to 3.2.x
+ conditions:
+ - merged
+ - base=master
+ - milestone=3.2.X
+ actions:
+ backport:
+ branches:
+ - 3.2.x
+ label:
+ add: [Backported]
+
+ - name: label Mergify backport PR
+ conditions:
+ - base=3.2.x
+ - body~=This is an automated backport of pull request \#\d+ done by Mergify.io
+ actions:
+ label:
+ add: [Backport]
+
+ - name: automatic squash-and-merge of backport PRs
+ conditions:
+ - status-success=1 - compile
+ - status-success=2 - checkstyle
+ - status-success=2 - test
+ - "status-success=ci/circleci: build-firrtl"
+ - "status-success=ci/circleci: build-prep"
+ - "status-success=ci/circleci: checkstyle-chisel"
+ - "status-success=ci/circleci: test-chisel-2_11"
+ - "status-success=ci/circleci: test-chisel-2_12"
+ - status-success=license/cla
+ - status-success=pull request checks
+ - "#changes-requested-reviews-by=0"
+ - base=3.2.x
+ - label="Backport"
+ - label!="DO NOT MERGE"
+ actions:
+ merge:
+ method: squash
+ strict: smart
+ strict_method: merge