Skip to content

Commit b4a7811

Browse files
committed
Make the release notes script tolerant of merges
This makes the release notes script tolerant of manual merges, which helps when calculating the release notes before doing the GitHub branch merge.
1 parent c29fe20 commit b4a7811

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hack/release/release-notes.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ NEWLINE="
2121
"
2222
head_commit=$(git rev-parse HEAD)
2323
while read commit_word commit; do
24+
if [[ -z ${commit_word} ]]; then
25+
# skip terminating blank lines
26+
continue
27+
fi
2428
read title
29+
if [[ ${title} == "Merge branch '"*"' into release-"* ]]; then
30+
# skip temporary merge commits for calculating release notes
31+
continue
32+
fi
33+
2534
read # skip the blank line
2635
read prefix body
2736

0 commit comments

Comments
 (0)