diff --git a/.github/workflows/pr-reviewer-assign.yml b/.github/workflows/pr-reviewer-assign.yml new file mode 100644 index 0000000000..aa5f2ef8b7 --- /dev/null +++ b/.github/workflows/pr-reviewer-assign.yml @@ -0,0 +1,35 @@ +name: PR Auto Assign Reviewer + +on: + pull_request_target: + types: [ opened ] + +jobs: + add-reviewer: + runs-on: ubuntu-latest + steps: + - name: Add assignees + uses: actions-cool/issues-helper@main + with: + actions: 'add-assignees' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.pull_request.number }} + assignees: ${{ github.event.pull_request.user.login }} + + - name: Add reviewers + uses: actions-cool/pr-welcome@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + pr-emoji: '+1, rocket' + reviewers: 'zackyoungh,gaoyan1998,Zzm0809,aiwenmo' + review-creator: false + +# +# - name: Add project +# if: "github.event_name == 'pull_request_target'" +# uses: alex-page/github-project-automation-plus@v0.8.1 +# with: +# project: Dinky Roadmap +# column: Doing +# repo-token: ${{ secrets.GITHUB_TOKEN }} +# action: 'add-project-column' \ No newline at end of file