From 09a0020840099664f76a3d4ea00bec566707c998 Mon Sep 17 00:00:00 2001 From: Alejandro Bordallo Date: Wed, 4 Dec 2024 17:01:08 +0000 Subject: [PATCH] Update mergify config --- .mergify.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index dacf3d2..dc0ee63 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -1,4 +1,19 @@ pull_request_rules: + - name: assign PR to its author + conditions: + - base = main + actions: + assign: + add_users: + - "{{author}}" + - name: review request for all PRs + conditions: + - base = main + actions: + request_reviews: + users: + - GreatAlexander + - hect95 - name: automatic merge for pre-commit ci updates conditions: - author=pre-commit-ci[bot] @@ -6,3 +21,12 @@ pull_request_rules: actions: merge: method: squash +merge_protections: + - name: Require approval + description: Require at least one review approval before merging is allowed (If + not a pre-commit PR) + if: + - -author = pre-commit-ci[bot] + - base = main + success_conditions: + - "#approved-reviews-by >= 1"