From 8f46d9808b59ec65e464ed4da2c37778915f3443 Mon Sep 17 00:00:00 2001 From: Carlisia Thompson Date: Wed, 12 May 2021 08:03:49 -0700 Subject: [PATCH] Fix gh action (#3743) * Fix gh action * Fix it maybe * Update GH action version * Set write permission for the job * Use target * Remove config that is already default Signed-off-by: Carlisia --- .github/auto-assignees.yml | 5 +---- .github/workflows/auto_request_review.yml | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/auto-assignees.yml b/.github/auto-assignees.yml index 81c5fb8d0..b2158b59b 100644 --- a/.github/auto-assignees.yml +++ b/.github/auto-assignees.yml @@ -37,7 +37,4 @@ options: - wip - DO NOT MERGE enable_group_assignment: true - -# Randomly pick reviewers up to this number. -# Do not set this option if you'd like to assign all matching reviewers. -number_of_reviewers: 2 + number_of_reviewers: 2 diff --git a/.github/workflows/auto_request_review.yml b/.github/workflows/auto_request_review.yml index 91895e080..48622d7fc 100644 --- a/.github/workflows/auto_request_review.yml +++ b/.github/workflows/auto_request_review.yml @@ -2,8 +2,8 @@ name: "Auto Request Review" on: - pull_request: - types: [opened, ready_for_review, synchronize, reopened] + pull_request_target: + types: [opened, ready_for_review, reopened] jobs: auto-request-review: @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Request a PR review based on files types/paths, and/or groups the author belongs to - uses: necojackarc/auto-request-review@v0.5.1 + uses: necojackarc/auto-request-review@v0.7.0 with: token: ${{ secrets.GITHUB_TOKEN }} config: .github/auto-assignees.yml