abinoda / assignee-to-reviewer-action

GitHub Action that assigns reviewers based on assignees

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/assignee-to-reviewer-action@v1.0.4
        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.

About

GitHub Action that assigns reviewers based on assignees

License:MIT License


Languages

Language:Shell 64.5%Language:Dockerfile 35.5%