We have a script in UI fragments to insert additional tests to the merge messages before merge. We do see the texts being inserted to the merge message edit box. But those texts disappear after the pull request being merged.
Here are the codes used in the script to update the merge message:
var commitMsgElement = jquery("textarea[aria-label='Commit description']")
commitMsgElement.val(message + "${NEWLINE_ESCAPE}${NEWLINE_ESCAPE}" + commitMsgElement.val())
We also observed that commitMsgElement.val() only updates the messages in the UI, but the value of DOM object remains unchanged.
Using commitMsgElement.text() updates the value in the DOM object. But it still doesn't work.
Do we miss anything? This issue happens after we migrated to 8.19.0.