From ba36b37afa392bdc216945a997ff8a648f2671e7 Mon Sep 17 00:00:00 2001 From: John Gardiner Myers Date: Fri, 4 Jun 2021 20:24:38 -0700 Subject: [PATCH] Simplify release notes compilation steps --- docs/contributing/release-process.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/contributing/release-process.md b/docs/contributing/release-process.md index 20cac30ce7..567ced59f4 100644 --- a/docs/contributing/release-process.md +++ b/docs/contributing/release-process.md @@ -136,11 +136,10 @@ git checkout master git pull git checkout -b relnotes_${VERSION} -FROM=1.21.0-alpha.2 -TO=1.21.0-alpha.3 -DOC=1.21 -git log v${FROM}..v${TO} --oneline | grep Merge.pull | grep -v Revert..Merge.pull | cut -f 5 -d ' ' | tac > /tmp/prs -echo -e "\n## ${FROM} to ${TO}\n" >> docs/releases/${DOC}-NOTES.md +FROM=1.21.0-alpha.2 # Replace "1.21.0-alpha.2" with the previous version +DOC=$(expr ${VERSION} : '\([^.]*.[^.]*\)') +git log v${FROM}..v${VERSION} --oneline | grep Merge.pull | grep -v Revert..Merge.pull | cut -f 5 -d ' ' | tac > /tmp/prs +echo -e "\n## ${FROM} to ${VERSION}\n" >> docs/releases/${DOC}-NOTES.md relnotes -config .shipbot.yaml < /tmp/prs >> docs/releases/${DOC}-NOTES.md ```