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"