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>
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"
}
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 {