From cc76cd45d5c50e1da507ad20568667455b705473 Mon Sep 17 00:00:00 2001 From: Ville Ojamo <14869000+bluikko@users.noreply.github.com> Date: Fri, 23 Jan 2026 17:07:07 +0700 Subject: [PATCH] ceph-backport.sh: clean function argument use and update GitHub help link The function munge_body is passed the new PR body as an argument in function maybe_update_pr_title_body so use that argument instead of the variable new_body. Should have no functional change. Update GitHub help link from the deprecated help.github.com to docs.github.com. Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com> --- src/script/ceph-backport.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/ceph-backport.sh b/src/script/ceph-backport.sh index ba755423462..4f90ff93cfa 100755 --- a/src/script/ceph-backport.sh +++ b/src/script/ceph-backport.sh @@ -584,7 +584,7 @@ function interactive_setup_routine { echo "\"Full control of private repositories\" scope." echo echo "For more details, see:" - echo "https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line" + echo "https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens" echo echo -n "What is your GitHub token? " default_val="$github_token" @@ -900,7 +900,7 @@ function milestone_number_from_remote_api { } function munge_body { - echo "$new_body" | tr '\r' '\n' | sed 's/$/\\n/' | tr -d '\n' + echo "$*" | tr '\r' '\n' | sed 's/$/\\n/' | tr -d '\n' } function number_to_url { -- 2.47.3