Skip to content

Commit

Permalink
fix: backticks sometimes removed in changelog (#2315)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk authored May 16, 2024
1 parent 92c01cd commit 05893a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/changeset/get-full-changelog.mts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function getChangelogInfo(
const prType = title.replace(/(\w+).*/, "$1"); // chore!: add something -> chore
const isBreaking = title.includes(`${prType}!`);

const titleDescription = title.replace(/\w+\W+(.*)/, "$1"); // chore!: add something -> add something
const titleDescription = title.replace(/\w+!?:(.*)/, "$1").trim(); // chore!: add something -> add something
const summary =
titleDescription.charAt(0).toUpperCase() + titleDescription.slice(1);

Expand Down

0 comments on commit 05893a7

Please sign in to comment.