Skip to content

Commit

Permalink
made changesets generator more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
shairez committed Nov 22, 2024
1 parent e7880e7 commit 35d75f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .changeset/changelog-github-custom.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,9 @@ var changelogFunctions = {
.concat(links.pull || links.commit, ')');
}
emojiFirstline = firstLine
.replace('FEAT:', '✨ ')
.replace('feat:', '✨ ')
.replace('fix:', '🐞🩹')
.replace('FIX:', '🐞🩹')
.replace('DOCS:', '📃')
.replace('docs:', '📃');
.replace(/feat:/i, '✨ ')
.replace(/fix:/i, '🐞🩹')
.replace(/docs:/i, '📃');
return [
2 /*return*/,
'\n\n- '
Expand Down
9 changes: 3 additions & 6 deletions .changeset/changelog-github-custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,9 @@ const changelogFunctions: ChangelogFunctions = {
}

const emojiFirstline = firstLine
.replace('FEAT:', '✨ ')
.replace('feat:', '✨ ')
.replace('fix:', '🐞🩹')
.replace('FIX:', '🐞🩹')
.replace('DOCS:', '📃')
.replace('docs:', '📃');
.replace(/feat:/i, '✨ ')
.replace(/fix:/i, '🐞🩹')
.replace(/docs:/i, '📃');

return `\n\n- ${emojiFirstline} ${suffix}\n${futureLines
.map((l) => ` ${l}`)
Expand Down

0 comments on commit 35d75f6

Please sign in to comment.