From d6bcded5b437317c1ccd00c9ec126e5ad7c7e152 Mon Sep 17 00:00:00 2001 From: Josh Rose Date: Tue, 5 Nov 2024 11:47:32 +0100 Subject: [PATCH] ci: add mergify for merge management --- .github/mergify.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/mergify.yml diff --git a/.github/mergify.yml b/.github/mergify.yml new file mode 100644 index 0000000..7147906 --- /dev/null +++ b/.github/mergify.yml @@ -0,0 +1,36 @@ +--- +pull_request_rules: + - name: Auto-merge dependabot updates when checks pass + conditions: + - author=dependabot[bot] + - label!=wontfix + actions: + review: + type: APPROVE + message: Automatically approving dependabot + merge: + method: merge + - name: Auto-merge when all checks pass and the PR has been approved + conditions: + - "#changes-requested-reviews-by=0" + - "#approved-reviews-by>=1" + actions: + merge: + method: squash + - name: Ask for reviews + conditions: + - -closed + - -draft + - -author=dependabot[bot] + actions: + request_reviews: + teams: + - devs + random_count: 2 + - name: Assign PR to its author + conditions: + - "#files=1" + actions: + assign: + add_users: + - "{{author}}" \ No newline at end of file