Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions .changesets/20250314T045137-pr-53.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 'feat!: poop emoji'
pr: 53
author: jasonbahl
type: other
breaking: true
---
null
8 changes: 8 additions & 0 deletions .changesets/20250314T045810-pr-5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 'feat!: package emoji'
pr: 5
author: jasonbahl
type: other
breaking: true
---
null
8 changes: 8 additions & 0 deletions .changesets/20250314T152258-pr-55.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 'fix!: angel emoji'
pr: 55
author: jasonbahl
type: other
breaking: true
---
null
44 changes: 38 additions & 6 deletions .github/workflows/generate-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,38 @@ jobs:
# Create a temporary directory for release notes
mkdir -p /tmp/release-notes

# Generate release notes directly to see the raw output
echo "Raw output from release:notes command:"
npm run release:notes

# Generate release notes from all changesets to a temporary file
npm run release:notes 2>/dev/null | grep -v "^>" > /tmp/release-notes/temp_notes_raw.md
# Don't filter with grep initially to see what we're getting
npm run release:notes > /tmp/release-notes/temp_notes_raw.md

# Remove the "Found X changesets" line
sed -n '/^Found/!p' /tmp/release-notes/temp_notes_raw.md > /tmp/release-notes/temp_notes.md
# Show the raw content
echo "Raw content of temp_notes_raw.md:"
cat /tmp/release-notes/temp_notes_raw.md

# For debugging
echo "Generated release notes:"
# Now apply filtering if needed
cat /tmp/release-notes/temp_notes_raw.md | grep -v "^>" > /tmp/release-notes/temp_notes_filtered.md

# Show filtered content
echo "Filtered content:"
cat /tmp/release-notes/temp_notes_filtered.md

# Apply sed filtering
sed -n '/^Found/!p' /tmp/release-notes/temp_notes_filtered.md > /tmp/release-notes/temp_notes.md

# Show final content
echo "Final release notes content:"
cat /tmp/release-notes/temp_notes.md

# Make sure the file isn't empty
if [ ! -s /tmp/release-notes/temp_notes.md ]; then
echo "Warning: Release notes file is empty. Using fallback content."
echo "No changes documented yet. This will be updated when changesets are processed." > /tmp/release-notes/temp_notes.md
fi

- name: Check for existing release PR
id: check_pr
run: |
Expand Down Expand Up @@ -174,10 +196,20 @@ jobs:

PR_TITLE=$(echo "$PR_DATA" | jq -r '.title')

# Check if release notes file exists and has content
if [ -s /tmp/release-notes/temp_notes.md ]; then
RELEASE_NOTES=$(cat /tmp/release-notes/temp_notes.md)
echo "Using generated release notes:"
echo "$RELEASE_NOTES"
else
RELEASE_NOTES="No changes documented yet. This will be updated when changesets are processed."
echo "Using fallback release notes"
fi

# Create the PR body with proper formatting
PR_BODY="## Upcoming Changes"
PR_BODY="${PR_BODY}"$'\n\n'
PR_BODY="${PR_BODY}$(cat /tmp/release-notes/temp_notes.md)"
PR_BODY="${PR_BODY}${RELEASE_NOTES}"
PR_BODY="${PR_BODY}"$'\n\n'
PR_BODY="${PR_BODY}This PR contains all changes that will be included in the next release. It is automatically updated when new changesets are added to the develop branch."

Expand Down
5 changes: 1 addition & 4 deletions automation-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@

// show a message in the admin dashboard with the plugin name and version
add_action( 'admin_notices', function() {
echo '<div class="notice notice-info"><p>🤖 Automation Tests v' . AUTOMATION_TESTS_VERSION . '</p></div>';
echo '<div class="notice notice-info"><p>😇 Automation Tests v' . AUTOMATION_TESTS_VERSION . '</p></div>';
});



Loading
Loading