From 4e43cf18079632fd035f70ae30b1aaa5cccc9814 Mon Sep 17 00:00:00 2001 From: Erek Speed Date: Mon, 26 Aug 2024 19:16:17 +0900 Subject: [PATCH] ci(mergify): Update configuration to avoid deprecation notices (#2179) - Rename `method` to `merge_method` - Move merge settings to queue_rules (this required making a new queue to separate dependabot from non-dependabot. This change has been made by @melink14 from the Mergify config editor. --- .github/mergify.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index a8ecbf350..1d669ad9c 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -1,6 +1,15 @@ queue_rules: - - name: default - conditions: [] # no extra conditions needed to get merged + - name: dependabot + # Each PR is one commit, but mergify may add merge commits when updating. + merge_method: squash + - name: non-dependabot + # Each PR is one commit, but may have extras added during review so squash. + merge_method: squash + # Uses original PR title and body for squashed commit message. + commit_message_template: | + {{ title }} (#{{ number }}) + + {{ body }} pull_request_rules: - name: Auto-merge dependabot @@ -10,9 +19,7 @@ pull_request_rules: - author=dependabot[bot] actions: queue: - name: default - # Each PR is one commit, but mergify may add merge commits when updating. - method: squash + name: dependabot - name: Have Dependabot rebase when conflict at head of queue # It's not unusual for there to be a conflict between subsequent dependabot @@ -50,11 +57,4 @@ pull_request_rules: - author~=^(?:(?!dependabot).)*$ actions: queue: - name: default - # Each PR is one commit, but may have extras added during review so squash. - method: squash - # Uses original PR title and body for squashed commit message. - commit_message_template: | - {{ title }} (#{{ number }}) - - {{ body }} + name: non-dependabot