Write comment on patch set/change from MergeValidationListener
22 views
Skip to first unread message
Andreas Wederbrand
unread,
Jul 10, 2014, 9:10:28 AM7/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Repo and Gerrit Discussion
Hi!
I've written a plugin that does preMerge validation on a patch set. It works correctly except that I haven't found a way to communicate back to the user what validation errors I've found.
From what I can tell the only way to reject the merge is to throw new MergeValidationException(PATH_CONFLICT);
No other message can be given.
Is there any way to send other exceptions or exceptions with another message?
Or to write to the comments from inside the plugin?