Skip to content

Auto assign reviewers (including teams) to github pull requests

License

Notifications You must be signed in to change notification settings

dixahq/autoassign-reviewers-action

Repository files navigation

Auto Assign Review Teams

Example Usage

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

Build & Release

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)

...