Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print the changelog more compactly #23

Merged
merged 3 commits into from
Dec 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/bump-stdlibs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)`)
Expand All @@ -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",
)
Expand Down