Project

General

Profile

Feature #51222 » 0007-scripts-ceph-backport.sh-allow-override-PR-path.patch

Loïc Dachary, 08/10/2021 12:13 PM

View differences:

ceph-backport.sh
verbose "Initializing remote API endpoints"
redmine_endpoint="${redmine_endpoint:-"https://tracker.ceph.com"}"
github_endpoint="${github_endpoint:-"https://github.com/ceph/ceph"}"
github_pull_path="${github_pull_path:-pull}"
github_api_endpoint="${github_api_endpoint:-"https://api.github.com"}"
}
......
local number_type="$1"
local number="$2"
if [ "$number_type" = "github" ] ; then
echo "${github_endpoint}/pull/${number}"
echo "${github_endpoint}/${github_pull_path}/${number}"
elif [ "$number_type" = "redmine" ] ; then
echo "${redmine_endpoint}/issues/${number}"
else
(7-7/10)