From 4c81ff848e9c44b21598f8c4a39c90f2ce5501d2 Mon Sep 17 00:00:00 2001 From: Josh Rose Date: Thu, 26 Sep 2024 12:22:11 +0200 Subject: [PATCH] feat: standardise mergify config --- .github/mergify.yml | 45 +++++++++++++++------------------------------ 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index 5e7233c..57ee3e9 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -1,50 +1,35 @@ --- pull_request_rules: - - name: Auto-squash dependabot updates when checks pass + - name: Auto-merge dependabot updates when checks pass conditions: - - and: - - author~=^dependabot(|-preview)\[bot\]$ - - label!=wontfix - - check-success=SonarCloud Code Analysis - - check-success=build - - check-success=lint + - author=dependabot[bot] + - label!=wontfix actions: review: type: APPROVE message: Automatically approving dependabot merge: method: merge - - name: Auto-squash when all checks pass and the PR has been approved + - name: Auto-merge when all checks pass and the PR has been approved conditions: - - and: - - check-success=SonarCloud Code Analysis - - check-success=build - - check-success=lint - - "#review-requested=0" - - "#approved-reviews-by>=1" + - "#review-requested=0" + - "#approved-reviews-by>=1" actions: merge: method: merge - - name: Ask an old fart to review the code + - name: Ask for reviews conditions: - -closed - -draft - - author~=!^dependabot(|-preview)\[bot\]$ + - -author=dependabot[bot] actions: request_reviews: - users: - - JoshTheWanderer - - DanWebb - - gavmck - random_count: 1 - - name: Get some more eyes on it + teams: + - devs + - name: Assign PR to its author conditions: - - -closed - - -draft - - author~=!^dependabot(|-preview)\[bot\]$ + - "#files=1" actions: - request_reviews: - users: - - ella-etch - - Carl-J-M - random_count: 1 + assign: + add_users: + - "{{author}}"