From b474bc4aab8f5a949cfc3d31142f1dd41c5ce156 Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Sat, 25 Jan 2020 16:12:43 +0100 Subject: [PATCH] Mergify: configuration update (#4) --- .mergify.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..f89ec57 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,37 @@ +pull_request_rules: + - name: Automatic merge on approval + conditions: + - "#approved-reviews-by>=1" + - status-success=lint-test + - base=master + - label!=work-in-progress + actions: + merge: + method: merge + + - name: delete head branch after merge + conditions: + - merged + actions: + delete_head_branch: {} + + - name: remove outdated reviews + conditions: + - base=master + actions: + dismiss_reviews: {} + + - name: say hi on new contribution + conditions: [] + actions: + comment: + message: | + Thanks for your pull request! + The owner of this repository will try to review and merge this as soon as possible. + + - name: ask to resolve conflict + conditions: + - conflicts + actions: + comment: + message: This pull request has now conflicts with the base branch. Could you please try to fix them? 🙏