Skip to content

Commit

Permalink
Update scripts/utils/update-changelog.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Alan B Smith <[email protected]>
  • Loading branch information
RayRedGoose and alanbsmith authored Sep 22, 2023
1 parent 4db7987 commit ef90371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/utils/update-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const changelogBody = CHANGESET_BODY.split('##')
.filter(block => regex.test(block))
.map(b =>
b.replace(/# [a-zA-Z0-9_ ]*\n/g, a => {
// Canvas Kit's changelog generator defaults section headings to "Components."
// We're updating that default with use "Other" instead.
const updatedTitle = a.replace(/# |\n/g, '').replace('Components', 'Other');
return `**${updatedTitle}**\n`;
})
Expand Down

0 comments on commit ef90371

Please sign in to comment.