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 <carlisia@grokkingtech.io>
This commit is contained in:
Carlisia Thompson
2021-05-12 23:03:49 +08:00
committed by GitHub
parent 4d173d725c
commit 8f46d9808b
2 changed files with 4 additions and 7 deletions
+1 -4
View File
@@ -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
+3 -3
View File
@@ -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