Project

General

Profile

Feature #51222 » 0005-scripts-ceph-backport.sh-allow-override-of-the-pull-.patch

Loïc Dachary, 07/27/2021 05:06 AM

View differences:

ceph-backport.sh
}
function populate_original_pr {
local redmine_pull_request_id_custom_field="${redmine_pull_request_id_custom_field:-21}"
if [ "$original_issue" ] ; then
if [ -z "$original_pr" ] ; then
original_pr=$(curl --silent "${original_issue_url}.json" |
jq -r '.issue.custom_fields[] | select(.id | contains(21)) | .value')
jq -r '.issue.custom_fields[] | select(.id == '$redmine_pull_request_id_custom_field') | .value')
original_pr_url="$(number_to_url "github" "${original_pr}")"
fi
fi
(5-5/10)