-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for monorepo / cross-team repositories #85
Comments
Unfortunately, it doesn't support that use case. The biggest blocker is the option for the maximum number of reviewers applied to the whole reviewer selection. Let's say five reviewers are chosen based on files changed and teams, and you have auto-request-review/src/index.js Lines 71 to 75 in 2cfdd67
Off the top of my head, I can think of something like I'm not sure if this is a good idea, but I think your case could be covered with this option: reviewers:
groups:
team_1_maintainers:
- member_a
team_1_contributors:
- member_b
team_2_maintainers:
- member_c
team_2_contributors:
- member_d
per_author:
team_1_contributors:
- team_1_maintainers
- team_1_contributors
team_2_contributors:
- team_2_maintainers
- team_2_contributors
options:
groups:
team_1_maintainers:
number_of_reviewers: 1
team_2_maintainers:
number_of_reviewers: 1 |
I think adding that option would work well for this use-case. Teams / groups would be coupled with a number of reviewers and could set the number of reviewers they want added to each PR. One question I would have is how this option would interact with the global number of reviewers option. It seems like this global option might serve best as a default value if there aren't enough reviewers in the groups. |
Good question. I think it's important to make it backwards compatible. The global option should limit the total number of reviewers. If there are other ways to use the global options without breaking the current behaviour, that'd be great, but they can be similar but separate options. |
Oops, I completely forgot that @seanbecker15 reached out to me on Twitter... |
I'm hoping to inquire whether the following use-case is supported:
Team 1 - Maintainers
Team 1 - Contributors
Team 2 - Maintainers
Team 2 - Contributors
For a given glob, ask for review from 1 member of each maintainer group and the rest of the contributor group of the member who created the pull request.
This is an important use-case for repositories used across multiple teams (i.e., monorepos). Happy to elaborate and work toward a solution if this is not possible. Thanks!
The text was updated successfully, but these errors were encountered: