From d046a514168c70089779cb7b87b07e734119c5ce Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Tue, 18 Oct 2022 17:03:48 +0800 Subject: [PATCH] chore: auto add reviewers --- .github/auto_request_review.yml | 50 +++++++++++++++++++++ .github/workflows/auto_assign_reviewers.yml | 15 +++++++ 2 files changed, 65 insertions(+) create mode 100644 .github/auto_request_review.yml create mode 100644 .github/workflows/auto_assign_reviewers.yml diff --git a/.github/auto_request_review.yml b/.github/auto_request_review.yml new file mode 100644 index 00000000..6d388630 --- /dev/null +++ b/.github/auto_request_review.yml @@ -0,0 +1,50 @@ +reviewers: + defaults: + - 'nkwangleiGIT' + - 0xff-dev + - Abirdcfly + + groups: + cli: + - 0xff-dev + executor: + - 0xff-dev + observer: + - 0xff-dev + scheduler: + - Abirdcfly + tests: + - Abirdcfly + - 'nkwangleiGIT' + +files: + '.github/**': + - tests + 'build/**': + - tests + 'hack/**': + - tests + 'doc/**': + - tests + '**/abctl/**': + - cli + '**/executor/**': + - executor + '**/observer/**': + - observer + '**/scheduler/**': + - scheduler + +options: + ignore_draft: true + ignored_keywords: + - DO NOT REVIEW + - DNR + - DO NOT MERGE + - DNM + - WIP + - WORK IN PROCESS + enable_group_assignment: true + + # Do not set this option if you'd like to assign all matching reviewers. + number_of_reviewers: 3 diff --git a/.github/workflows/auto_assign_reviewers.yml b/.github/workflows/auto_assign_reviewers.yml new file mode 100644 index 00000000..bf616486 --- /dev/null +++ b/.github/workflows/auto_assign_reviewers.yml @@ -0,0 +1,15 @@ +name: Auto Request Review + +on: + pull_request: + types: [opened, ready_for_review, reopened] + +jobs: + auto-request-review: + name: Auto Request Review + runs-on: ubuntu-latest + steps: + - name: Request review based on files changes and/or groups the author belongs to + uses: necojackarc/auto-request-review@v0.8.0 + with: + token: ${{ secrets.GITHUB_TOKEN }}