Skip to content

Commit

Permalink
Release script is now more flexible about release notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
orium committed Nov 5, 2023
1 parent 2f8d343 commit ac164dd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ echo "Current version is $(project_version)."
echo -n "Which version do you want to release? "
read release_version

if ! grep "^## " release-notes.md | head -1 | grep --silent "^## $release_version$"; then
echo "You forgot to update the release notes." >&2
exit 1
fi

echo -n "Which will be the next version? "
read next_version

Expand Down Expand Up @@ -80,6 +75,13 @@ fi

echo "done."

while ! grep "^## " release-notes.md | head -1 | grep --silent "^## $release_version$"; do
echo
echo "There's no entry for this version in the release notes."
echo -n "Go ahead and add them and press enter when you're done... "
read
done

set_version "$release_version"

git commit -am "Release v${release_version}."
Expand Down

0 comments on commit ac164dd

Please sign in to comment.