Format of pullrequest merge veto message

Hi all,

I am writing a merge-check script that validates certain rules on our Pull Requests.

However, I wasn’t able to add newline characters to the merge veto message, that appears when clicking on the disabled merge button.
I tried the syntax “a\nb”, and also “a\n\nb”,
but as you can see in the left side of the screenshot, it is rendered as regular space.

I would also like to know how to add line separator to the veto message, as shown in the right side of the screenshot.

Thanks in advance,
Yael

Hi Yael,

Its not possible to mark up the veto message at this stage. There is an open suggestion for it here: https://jira.atlassian.com/browse/BSERV-4428.

It would be great to hear your use case for this. If the line break is to separate two different conditions that are failing, could you just add multiple vetos?

All the best,
Kristy

Hi Kristy,

Thanks for the quick answer.
You are right, I can simply add multiple vetos, I wasn’t aware of this option.

Thanks again!
Yael