Skip to content

Commit

Permalink
Merge pull request #1095 from libp2p/fix/mkreleasenotes
Browse files Browse the repository at this point in the history
fix(mkreleasenotes): handle first commit
  • Loading branch information
Stebalien authored May 11, 2021
2 parents e6be34b + 0b23836 commit 035edd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/mkreleaselog
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ release_log() {
"$start..$end" |
while read commit subject; do
# Skip gx-only PRs.
git -C "$dir" diff-tree --no-commit-id --name-only "$commit^" "$commit" |
grep -v "${IGNORED_FILES}" >/dev/null || continue
if git rev-parse '$commit^' >/dev/null 2>&1 &&
! 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
local prnum="${BASH_REMATCH[2]}"
Expand Down

0 comments on commit 035edd3

Please sign in to comment.