kentaro-m / auto-assign-action

An action which adds reviewers to the pull request when the pull request is opened.
MIT License
298 stars 89 forks source link

Group of reviewers per label #111

Open k-mitevski opened 1 year ago

k-mitevski commented 1 year ago

Hello 👋 Not sure if this is a feature of this action, but is it possible to auto-assign reviewers based on a specific label?

Example, if the label backend is applied only reviewers from the backend group would be assigned to the PR. Same for the frontend label.

# Set to true to add reviewers from different groups to pull requests
useReviewGroups: true

# A list of reviewers, split into different groups, to be added to pull requests (GitHub user name)
reviewGroups:
  backend:
    - reviewerA
    - reviewerB
    - reviewerC
  frontend:
    - reviewerD
    - reviewerE
    - reviewerF
    - 
filterLabels:
  include:
    - backend
    - frontend
  # Not run
  exclude:
    - wip

Thank you.