/assignee-to-reviewer-action

GitHub Action that assigns reviewers based on assignees

Primary LanguageShellMIT LicenseMIT

Assign reviewers based on assignees

If your team currently uses pull request assignees but would like to switch to Review Requests, having everyone change their workflows can be difficult. This GitHub Action eases the transition by automatically creating and deleting review requests based on assignees. This may be particularly helpful when using a 3rd-party app like Pull Reminders that relies on review requests.

Usage

This Action subscribes to Pull request events which fire whenever users are assigned or unassigned to pull requests.

workflow "Assign reviewers based on assignees" {
  on = "pull_request"
  resolves = ["Assignee to reviewer"]
}

action "Assignee to reviewer" {
  uses = "pullreminders/assignee-to-reviewer-action@master"
  secrets = [
    "GITHUB_TOKEN"
  ]

  # add this line if you want to continue running parallel github actions even if this action is skipped/not needed
  env = {
    REVIEWERS_UNMODIFIED_EXIT_CODE = "0"
  }
}

Demo

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.