Interface OnPostReview


public interface OnPostReview
Extension point that is invoked on post review.
  • Method Details

    • getChangeMessageAddOn

      default Optional<String> getChangeMessageAddOn(Instant when, IdentifiedUser user, ChangeNotes changeNotes, PatchSet patchSet, Map<String,Short> oldApprovals, Map<String,Short> approvals)
      Allows implementors to return a message that should be included into the change message that is posted on post review.
      Parameters:
      when - the timestamp at which the review is posted
      user - the user that posts the review
      changeNotes - the change on which post review is performed
      patchSet - the patch set on which post review is performed
      oldApprovals - old approvals that changed as result of post review
      approvals - all current approvals
      Returns:
      message that should be included into the change message that is posted on post review, Optional.empty() if the change message should not be extended