kentaro-m / auto-assign

🤖 A Probot app that adds reviewers to pull requests when pull requests are opened.
https://probot.github.io/apps/auto-assign/
ISC License
249 stars 55 forks source link

Using github team to define the list of reviewers instead of listening individual names #123

Open itomtom opened 4 years ago

itomtom commented 4 years ago

Is your feature request related to a problem? Please describe. Currently listing a Github team assigns the whole team to the pull request, when in reality what I am hoping for is individual members in the team to be assigned.

Describe the solution you'd like Can we define the team name org/team and X number of reviewers will be chosen from the github team.

Describe alternatives you've considered Listing each individual member in a org/team. But then you'll have multiple list of teams to maintain.

Additional context I am not entirely sure if this is already available and I am just listing the team incorrectly in the auto_assign.yml. At the moment it assigned the whole team to the pull request, which is not exactly what I was looking for. I only needed two members in the team.

Crossedfall commented 4 years ago

Do you have the team set to auto assign? GitHub allows you to configure teams to automatically assign a set number of people to a PR, it'll even try to balance out the reviews for you.

https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/managing-code-review-assignment-for-your-team

Not sure if that's exactly what you're looking for, but it sounds pretty close.