We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa5ba58 + 6073b93 commit ab2fb4dCopy full SHA for ab2fb4d
scripts/release.sh
@@ -72,7 +72,9 @@ if ! grep -q "## \[Unreleased\]" CHANGELOG.md; then
72
fi
73
74
# Check if there are actual changes in [Unreleased]
75
-if grep -A 3 "## \[Unreleased\]" CHANGELOG.md | grep -q "^## \["; then
+# Extract content between [Unreleased] and the next version heading
76
+UNRELEASED_CONTENT=$(sed -n '/^## \[Unreleased\]/,/^## \[[0-9]/p' CHANGELOG.md | sed '$d')
77
+if ! echo "$UNRELEASED_CONTENT" | grep -q "^-"; then
78
echo -e "${RED}Error: [Unreleased] section appears to be empty${NC}"
79
echo "Please add your changes to the [Unreleased] section first."
80
exit 1
0 commit comments