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

scripts/bump-pebble: markdown format commit list links #116874

Merged
merged 3 commits into from
Dec 20, 2023
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
9 changes: 5 additions & 4 deletions scripts/bump-pebble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ if ! git merge-base --is-ancestor $OLD_SHA $NEW_SHA; then
exit 1
fi

COMMITS=$(git log --pretty='format:%h %s' "$OLD_SHA..$NEW_SHA" |
grep -v 'Merge pull request' |
sed 's#^#https://github.com/cockroachdb/pebble/commit/#')
COMMITS=$(git log --no-merges --pretty='format: * [`%h`](https://github.com/cockroachdb/pebble/commit/%h) %s' "$OLD_SHA..$NEW_SHA")
popd

echo
Expand Down Expand Up @@ -94,9 +92,12 @@ go mod tidy
git add go.mod go.sum DEPS.bzl build/bazelutil/distdir_files.bzl
git commit -m "go.mod: bump Pebble to ${NEW_SHA:0:12}

Changes:

$COMMITS

Release note:
Release note: none.
Epic: none.
"
# Open an editor to allow the user to set the release note.
git commit --amend
Expand Down
Loading