Skip to content

Commit

Permalink
build: add initial Mergify configuration
Browse files Browse the repository at this point in the history
This allows contributors to the repository to automatically merge PRs
when it has two positive reviews.

Only rebased merges should be done, no squashing od commits or inclusion
of merge commits.

Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic committed Oct 26, 2021
0 parents commit 4018c54
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
defaults:
actions:
merge:
method: rebase
rebase_fallback: merge
strict: smart
strict_method: rebase

pull_request_rules:
- name: remove outdated approvals
conditions:
- base~=^(main)|(release-.+)$
actions:
dismiss_reviews:
approved: true
changes_requested: false
- name: automatic merge
conditions:
- base~=^(main)|(release-.+)$
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
actions:
merge: {}
dismiss_reviews: {}
delete_head_branch: {}

0 comments on commit 4018c54

Please sign in to comment.