Skip to content

Commit

Permalink
chore(scripts/release): add notes to PR body
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Oct 23, 2024
1 parent 79376f1 commit d002df5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scripts/release/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,16 @@ const main = async () => {
await addNotes(notes, versionBump, lastVersion);

console.log(chalk`{blue Creating pull request...}`);
const message = [
`Release ${thisVersion}`,
const title = `Release ${thisVersion}`;
const body = [
"(This release was generated by the project's release script.)",
'',
"This release was generated by the project's release script.",
...notes,
].join('\n');
await commitAndPR(message, { wait: versionBump !== 'patch' });
await commitAndPR(title, {
pr: { title, body },
wait: versionBump !== 'patch',
});

console.log(chalk`{blue {bold Done!}}`);
};
Expand Down

0 comments on commit d002df5

Please sign in to comment.