Merge PR #57686 into main

* refs/pull/57686/head:
	script/ceph-backport: update Ceph PR id

Reviewed-by: Leonid Usov <leonid.usov@ibm.com>
This commit is contained in:
Patrick Donnelly 2024-05-24 16:43:40 -04:00
commit 15eaef742e
No known key found for this signature in database
GPG Key ID: FA47FD0B0367D313

View File

@ -1749,9 +1749,9 @@ if [ "$TRACKER_PHASE" ] ; then
desc_should_be="${backport_pr_url}"
assignee_should_be="${redmine_user_id}"
if [ "$EXISTING_PR" ] ; then
data_binary="{\"issue\":{\"description\":\"${desc_should_be}\",\"status_id\":${status_should_be}}}"
data_binary="{\"issue\":{\"description\":\"${desc_should_be}\",\"status_id\":${status_should_be},\"custom_fields\":[{\"id\":21,\"value\":\"${backport_pr_number}\"}]}}"
else
data_binary="{\"issue\":{\"description\":\"${desc_should_be}\",\"status_id\":${status_should_be},\"assigned_to_id\":${assignee_should_be}}}"
data_binary="{\"issue\":{\"description\":\"${desc_should_be}\",\"status_id\":${status_should_be},\"assigned_to_id\":${assignee_should_be},\"custom_fields\":[{\"id\":21,\"value\":\"${backport_pr_number}\"}]}}"
fi
remote_api_status_code="$(curl --write-out '%{http_code}' --output /dev/null --silent -X PUT --header "Content-type: application/json" --data-binary "${data_binary}" "${redmine_url}.json?key=$redmine_key")"
if [ "$FORCE" ] || [ "$EXISTING_PR" ] ; then