Skip to content

Commit cbe9f0a

Browse files
authored
Merge pull request kubernetes-sigs#604 from DirectXMan12/infra/tolerant-rel-notes
🏃 Make the release notes script tolerant of merges
2 parents c29fe20 + b4a7811 commit cbe9f0a

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)