All Projects → abinoda → Assignee To Reviewer Action

abinoda / Assignee To Reviewer Action

Licence: mit
GitHub Action that assigns reviewers based on assignees

Programming Languages

shell
77523 projects

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 specifically the assigned and unassigned events which fire whenever users are assigned or unassigned to pull requests.

name: Assign reviewers based on assignees
on:
  pull_request:
    types: [assigned, unassigned]

jobs:
  assignee_to_reviewer:
    runs-on: ubuntu-latest
    steps:
      - name: Assignee to Reviewer
        uses: pullreminders/[email protected]
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Note that the workflow for pull_request events will be triggered by default only for opened, synchronize or reopened activity types. For other, events the types keyword must be used.

Demo

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].