From 184faa7af9751094d0b4b0d15ac8a23333159949 Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Wed, 25 Mar 2020 11:25:38 +0100 Subject: [PATCH] Configure mergify Taking rules_haskell's mergify configuration as an example. --- .github/settings.yml | 3 +++ .mergify.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .mergify.yml diff --git a/.github/settings.yml b/.github/settings.yml index db94b610..569a41d9 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -33,3 +33,6 @@ labels: color: 0052cc - name: "wontfix" color: ffffff + - name: "merge-queue" + color: 0e8a16 + description: "merge on green CI" diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 00000000..9a924a87 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,28 @@ +pull_request_rules: + - name: automatic merge + conditions: + - "status-success~=buildkite/rules-nixpkgs(|/pr)" + - "#approved-reviews-by>=1" + - "label=merge-queue" + - "base=master" + actions: + merge: + method: merge + strict: smart + strict_method: rebase + + - name: delete head branch after merge + conditions: + - merged + - closed + actions: + delete_head_branch: {} + + - name: remove from merge-queue after merge + conditions: + - merged + actions: + label: + remove: + - "merge-queue" +