Skip to content

GitHub Action that assigns reviewers based on assignees

License

Notifications You must be signed in to change notification settings

to-s/assignee-to-reviewer-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 70.1%
  • Dockerfile 29.9%