]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-backport.sh: clean function argument use and update GitHub help link 67059/head
authorVille Ojamo <14869000+bluikko@users.noreply.github.com>
Fri, 23 Jan 2026 10:07:07 +0000 (17:07 +0700)
committerVille Ojamo <14869000+bluikko@users.noreply.github.com>
Tue, 27 Jan 2026 07:00:32 +0000 (14:00 +0700)
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

index ba755423462b2df6d8feae1b9ed3919e8444e317..4f90ff93cfa78ac9fcdf5c268dd33a3e2bf0a18a 100755 (executable)
@@ -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 {