Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ if ! grep -q "## \[Unreleased\]" CHANGELOG.md; then
fi

# Check if there are actual changes in [Unreleased]
if grep -A 3 "## \[Unreleased\]" CHANGELOG.md | grep -q "^## \["; then
# Extract content between [Unreleased] and the next version heading
UNRELEASED_CONTENT=$(sed -n '/^## \[Unreleased\]/,/^## \[[0-9]/p' CHANGELOG.md | sed '$d')
if ! echo "$UNRELEASED_CONTENT" | grep -q "^-"; then
echo -e "${RED}Error: [Unreleased] section appears to be empty${NC}"
echo "Please add your changes to the [Unreleased] section first."
exit 1
Expand Down