- Assign individual persons or member of GitHub Teams
- Team Assignment Works best, if code review assignment for the team is enabled
name: "Assign Reviewers"
on:
pull_request:
types: [opened, ready_for_review]
jobs:
assign-reviewers:
runs-on: ubuntu-latest
steps:
- name: "Adding Teams and Persons for review"
uses: adipatel/[email protected]
with:
repo-token: ${{ secrets.USER_TOKEN_THAT_CAN_ASSIGN_REVIEWERS_ACTION }}
teams: "my-github-team" # only works for GitHub Organisation/Teams
persons: "github-username" # add individual persons here
This project follows the template https://github.com/actions/typescript-action . Her are instructions to build & package.
Install the dependencies
$ npm install
Build the typescript and package it for distribution
$ npm run build
Run the tests ✔️
$ npm test
PASS __tests__/main.test.ts
Team
✓ It requests a review to a team (183ms)
Reviewer
✓ It requests a review to a person (13ms)
...