Interface OnPostReview
public interface OnPostReview
Extension point that is invoked on post review.
-
Method Summary
Modifier and TypeMethodDescriptiongetChangeMessageAddOn
(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.
-
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 posteduser
- the user that posts the reviewchangeNotes
- the change on which post review is performedpatchSet
- the patch set on which post review is performedoldApprovals
- old approvals that changed as result of post reviewapprovals
- 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
-