public interface ReviewerSuggestion
Invoked by Gerrit when a user clicks "Add Reviewer" on a change.
Modifier and Type | Method and Description |
---|---|
java.util.Set<SuggestedReviewer> |
suggestReviewers(Project.NameKey project,
Change.Id changeId,
java.lang.String query,
java.util.Set<Account.Id> candidates)
Suggest reviewers to add to a change.
|
java.util.Set<SuggestedReviewer> suggestReviewers(Project.NameKey project, Change.Id changeId, java.lang.String query, java.util.Set<Account.Id> candidates)
project
- The name key of the project the suggestion is for.changeId
- The changeId that the suggestion is for. Can be null
.query
- The query as typed by the user. Can be null
.candidates
- A set of candidates for the ranking. Can be empty.SuggestedReviewer
s. The Account.Id
s listed here don't have to be included in
candidates
.