Skip to content
at-sign

GitHub Action

Auto Assign Reviewer by Issuer

v1.0.0 Latest version

Auto Assign Reviewer by Issuer

at-sign

Auto Assign Reviewer by Issuer

This action will automatically assigns reviewers based on pull request issuer

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Auto Assign Reviewer by Issuer

uses: shufo/[email protected]

Learn more about this action in shufo/auto-assign-reviewer-by-issuer

Choose a version

CI

Auto Assign Reviewer By Issuer

Automatically assigns reviewers based on pull request issuer

Configuration

create configuration file

.github/reviewers.yml

---
# issuer: reviewer
shufo:
  - shufo2
# you can set multiple reviewers
smith:
  - user1
  - user2
# you can use regexp to match issuer
john.*:
  - foo
  - bar
# fallback
.*:
  - foo

create action file

.github/workflows/auto-assign.yml

name: "Auto Assign"
on:
  pull_request:
    types: [opened]

jobs:
  assign:
    runs-on: ubuntu-latest
    steps:
    - uses: shufo/[email protected]
      with:
        config: '.github/reviewers.yml'
        token: ${{ secrets.GITHUB_TOKEN }}

Example

image