diff --git a/src/bump-stdlibs.jl b/src/bump-stdlibs.jl index 0a6746b..71c1473 100644 --- a/src/bump-stdlibs.jl +++ b/src/bump-stdlibs.jl @@ -86,7 +86,8 @@ function _bump_single_stdlib(stdlib::StdlibInfo; cd(temp_dir) cd("STDLIB") run(`git fetch --all --prune`) - changelog = read(`git log --pretty=oneline --abbrev=commit $(stdlib_current_commit_in_upstream)^..$(stdlib_latest_commit)`, String) + changelog_cmd = `git log --oneline $(stdlib_current_commit_in_upstream)^..$(stdlib_latest_commit)` + changelog = read(changelog_cmd, String) cd(temp_dir) cd("FORK") run(`git checkout $(upstream_julia_repo_default_branch)`) @@ -95,10 +96,10 @@ function _bump_single_stdlib(stdlib::StdlibInfo; commit_message = "🤖 Bump the $(name) stdlib to $(stdlib_latest_commit_short)" pr_branch = "BumpStdlibs/$(name)-$(stdlib_latest_commit_short)$(pr_branch_suffix)" pr_body = string( - "This pull request bumps Pkg to `$(stdlib_latest_commit_short)`, which is currently the latest commit on the `$(stdlib.branch)` branch.\n", + "This pull request bumps $(name) to `$(stdlib_latest_commit_short)`, which is currently the latest commit on the `$(stdlib.branch)` branch.\n", "\n", "```\n", - "\$ git log --pretty=oneline --abbrev=commit $(stdlib_current_commit_in_upstream)^..$(stdlib_latest_commit)\n", + "\$ $(strip(string(changelog_cmd), '`'))\n", "$(strip(changelog))\n", "```\n", )