kentaro-m / auto-assign-action

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

Assignees enhancement - Option to include Author (ie. owner) in conjunction with other auto-assignees. #53

Open 4justinstewart opened 3 years ago

4justinstewart commented 3 years ago

Taking a look at the code, it appears that the owner / author can not be an assignee in conjunction with other assignees.

https://github.com/kentaro-m/auto-assign-action/blob/master/src/utils.ts

For example:

addAssignees: true

assignees:
  - contributor1
  - contributor2
  - contributor3
  - contributor4
  - contributor5
  - contributor6

numberOfAssignees: 6

When contributor1 is the author/owner of the PR, they won't be included even the numberOfAssignees is a number large enough to include them in the sample of the collection.


Issue: I'm wondering what the intent is for this logic, and if the project is open to allowing an option in the config to include author/owner along with other assignees.