Feature #51222 » 0007-scripts-ceph-backport.sh-allow-override-PR-path.patch
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
|