Skip to content

Auto Assign Review Teams

Actions
Send review requests to teams (with Auto Assignment) or persons
v1.1.3
Latest
Star (17)

Auto Assign Review Teams

  • Assign individual persons or member of GitHub Teams
  • Team Assignment Works best, if code review assignment for the team is enabled
  • Assign individual person from list of persons or first Github Team in the list if pick-one-from-persons-or-team flag is true

Example Usage

name: "Assign Reviewers"
on:
  pull_request:
    types: [opened, ready_for_review]

jobs:
  assign-reviewers:
    runs-on: ubuntu-latest
    steps:
      - name: "Assign Team and Persons"
        uses: rowi1de/auto-assign-review-teams@v1.2.0
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          teams: "github-org-team" # only works for GitHub Organisation/Teams
          persons: "rowi1de" # add individual persons here
          include-draft: false # Draft PRs will be skipped (default: false)
          skip-with-manual-reviewers: 0 # Skip this action, if the number of reviewers was already assigned (default: 0)
          pick-one-from-persons-or-team: false # Will pick out one reviewer from persons and/or the first GitHub team and "org" set (default: false)
          org: "github-org" # only needed for pick-one-from-persons-or-team=true

Permissions for Team Assignment

When using the teams input, the default GITHUB_TOKEN may not have sufficient permissions to resolve team slugs. If you get a "Could not resolve to a node" validation error, you need to use a Personal Access Token (PAT) or a GitHub App token instead:

  • PAT: Create a token with repo and read:org scopes and store it as a repository secret
  • GitHub App: Use an installation token with Members (read-only) and Pull requests (write) permissions
repo-token: ${{ secrets.PAT_TOKEN }}  # use PAT instead of GITHUB_TOKEN
teams: "my-team"

Use the team slug (e.g. my-team) without the org prefix. The org prefix is only needed in the org input when using pick-one-from-persons-or-team.

Build

npm run build && npm run package

Auto Assign Review Teams is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Send review requests to teams (with Auto Assignment) or persons
v1.1.3
Latest

Auto Assign Review Teams is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.