diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml index ef71467..9a273af 100644 --- a/.github/auto_assign.yml +++ b/.github/auto_assign.yml @@ -7,7 +7,7 @@ addAssignees: author # A list of reviewers to be added to pull requests (GitHub username) reviewers: - - japananh + - ncthanhngo # A number of reviewers added to the pull request # Set 0 to add all the reviewers (default: 0) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml deleted file mode 100644 index c996925..0000000 --- a/.github/workflows/action.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Auto Assign -on: [push, pull_request] -jobs: - add-reviewers-assignees: - name: Auto Add Reviewer and Assignees - runs-on: ubuntu-latest - steps: - - uses: kentaro-m/auto-assign-action@v1.2.6 - with: - configuration-path: '.github/auto_assign.yml' # Only needed if you use something other than .github/auto_assign.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..d637a14 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,15 @@ +name: Auto Assign + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.2.6 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file