Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Changes of pull request merge messages are not saved after merge

William Ing May 20, 2024

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.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.19.0
TAGS
AUG Leaders

Atlassian Community Events