Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 7f21048

Browse files
committed
no message
1 parent cac6b9b commit 7f21048

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/generate-changeset.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ jobs:
185185
npm run release:notes > /tmp/release-notes/temp_notes_raw.md
186186
else
187187
# For other branches, filter by branch as before
188+
echo "Generating release notes for ${{ steps.target_branch.outputs.name }} branch"
188189
npm run release:notes -- --branch="${{ steps.target_branch.outputs.name }}" > /tmp/release-notes/temp_notes_raw.md
189190
fi
190191
191-
# Remove the "Found X changesets" line and any lines starting with ">"
192+
# Process the raw notes consistently
192193
grep -v "^>" /tmp/release-notes/temp_notes_raw.md | sed -n '/^Found/!p' > /tmp/release-notes/temp_notes.md
193194
194195
# Make sure the file isn't empty

scripts/generate-release-notes.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,11 @@ async function readChangesets(options = {}) {
150150
return changesets.filter(changeset => changeset.branch === branch);
151151
}
152152

153-
// Update the function that formats the changeset entries
153+
// Ensure consistent formatting for changeset entries
154154
function formatChangesetEntry(changeset) {
155-
// Remove any single quotes that might be wrapping the title
155+
// Clean up the title (remove quotes, ensure proper format)
156156
const title = changeset.title.replace(/^['"]|['"]$/g, '');
157157

158-
// Ensure we have the full title
159158
return `* **${title}** (#${changeset.pr}) - @${changeset.author}`;
160159
}
161160

0 commit comments

Comments
 (0)