Interface ReviewerSuggestion


public interface ReviewerSuggestion
Listener to provide reviewer suggestions.

Invoked by Gerrit when a user clicks "Add Reviewer" on a change.

  • Method Details

    • suggestReviewers

      Set<SuggestedReviewer> suggestReviewers(Project.NameKey project, Change.Id changeId, String query, Set<Account.Id> candidates)
      Suggest reviewers to add to a change.
      Parameters:
      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.
      Returns:
      Set of SuggestedReviewers. The Account.Ids listed here don't have to be included in candidates.