From 2859a4f7d1ce5db6d539befcb5a5f8b54d8979ce Mon Sep 17 00:00:00 2001 From: Renato Cavalcanti Date: Wed, 27 Mar 2019 16:37:11 +0100 Subject: [PATCH] Mergify it! --- .mergify.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..b90435a --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,28 @@ + +pull_request_rules: + - 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: Delete the PR branch after merge + conditions: + - merged + actions: + delete_head_branch: {} + + - name: auto add wip + conditions: + # match a few flavours of wip + - title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).* + actions: + label: + add: ["status:block-merge"] \ No newline at end of file