From dbcc1fe832e5a7417f64c8682bc4724e171b1fff Mon Sep 17 00:00:00 2001 From: MrDynamo Date: Thu, 9 May 2024 13:25:30 -0500 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=A4=96=20auto=20request=20review=20?= =?UTF-8?q?on=20pull=20requests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/pr-review-config.yml | 10 ++++++++ .github/workflows/pr-review-request.yml | 31 +++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/pr-review-config.yml create mode 100644 .github/workflows/pr-review-request.yml diff --git a/.github/pr-review-config.yml b/.github/pr-review-config.yml new file mode 100644 index 00000000..fb9d7c33 --- /dev/null +++ b/.github/pr-review-config.yml @@ -0,0 +1,10 @@ +reviewers: + defaults: + - JamsRepos + - PhantomMantis + - MrDynamo + +options: + ignore_draft: true + ignored_keywords: + - NO REVIEW \ No newline at end of file diff --git a/.github/workflows/pr-review-request.yml b/.github/workflows/pr-review-request.yml new file mode 100644 index 00000000..4f6d180b --- /dev/null +++ b/.github/workflows/pr-review-request.yml @@ -0,0 +1,31 @@ +name: Auto Request Review + +on: + pull_request: + types: [opened, ready_for_review, reopened] + pull_request_target: + types: [opened, ready_for_review, reopened] + +jobs: + auto-request-review: + name: Request Reviews on Pull Request + runs-on: ubuntu-latest + steps: + - name: Get GitHub App Token + id: gh_app + uses: getsentry/action-github-app-token@v2 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + + - name: Request reviewe + uses: necojackarc/auto-request-review@v0.13.0 + with: + token: ${{ steps.gh_app.outputs.token }} + config: .github/pr-review-config.yml # Config file location override + # Look for config locally during run instead of in repo. + # For instance, if you'd like to use a config file stored in external storage, + # you can fetch it before you run this action, then let this action pick it up with `use_local: true`. + # This defaults to false if not specified. + # See https://github.com/necojackarc/auto-request-review/issues/76 for more details. + #use_local: true \ No newline at end of file