Browse Source

Merge pull request #1095 from libp2p/fix/mkreleasenotes

fix(mkreleasenotes): handle first commit
pull/1096/head v0.14.0
Steven Allen 4 years ago
committed by GitHub
parent
commit
035edd3a80
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      scripts/mkreleaselog

6
scripts/mkreleaselog

@ -120,8 +120,10 @@ release_log() {
"$start..$end" | "$start..$end" |
while read commit subject; do while read commit subject; do
# Skip gx-only PRs. # Skip gx-only PRs.
git -C "$dir" diff-tree --no-commit-id --name-only "$commit^" "$commit" | if git rev-parse '$commit^' >/dev/null 2>&1 &&
grep -v "${IGNORED_FILES}" >/dev/null || continue ! git -C "$dir" diff-tree --no-commit-id --name-only "$commit^" "$commit" | grep -v "${IGNORED_FILES}" >/dev/null; then
continue
fi
if [[ "$subject" =~ '^Merge pull request #([0-9]+) from' ]]; then if [[ "$subject" =~ '^Merge pull request #([0-9]+) from' ]]; then
local prnum="${BASH_REMATCH[2]}" local prnum="${BASH_REMATCH[2]}"

Loading…
Cancel
Save