Skip to content

Commit

Permalink
added action
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 committed Jan 25, 2024
1 parent f3e2f2e commit 3d5bb8c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pr-reviewer-assign.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
# with:
# project: Dinky Roadmap
# column: Doing
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# action: 'add-project-column'

0 comments on commit 3d5bb8c

Please sign in to comment.