Assign and request review functions are defined in github.js.
If reviewers or team-reviewers are not set, the Action will only auto assign the PR.
| Name | Description | Example |
|---|---|---|
token |
Required if using team-reviewers A repo scoped personal access token. Why. Create one here. |
${{ secrets.GH_TOKEN }} |
reviewers |
GitHub usernames, separated by comma | user1,user2,user3 |
team-reviewers |
Organization team names, separated by comma | backend |
- Create a file
pull-request.ymlin.github/workflows/directory with the following content:
name: pull-request on: pull_request: types: [opened, reopened] jobs: assign: runs-on: ubuntu-latest steps: - uses: delivery-much/actions-assigner@v1 with: token: ${{ secrets.GH_TOKEN }} team-reviewers: backend