Skip to content

Commit

Permalink
Configure mergify
Browse files Browse the repository at this point in the history
Taking rules_haskell's mergify configuration as an example.
  • Loading branch information
aherrmann committed Mar 25, 2020
1 parent 451876c commit 184faa7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ labels:
color: 0052cc
- name: "wontfix"
color: ffffff
- name: "merge-queue"
color: 0e8a16
description: "merge on green CI"
28 changes: 28 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 184faa7

Please sign in to comment.