This repository was archived by the owner on Mar 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
154154function 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
You can’t perform that action at this time.
0 commit comments