diff --git a/.github/workflows/pkg.pr.new.yml b/.github/workflows/pkg.pr.new.yml index fdcef981b3..263e529838 100644 --- a/.github/workflows/pkg.pr.new.yml +++ b/.github/workflows/pkg.pr.new.yml @@ -30,19 +30,16 @@ jobs: const fs = require('fs'); const output = JSON.parse(fs.readFileSync('output.json', 'utf8')); - const body = (number)=>`## \`pkg.pr.new\` + const bot_comment_identifier = ``; - ${output.packages - .map((p) => ` - ### ${p.name} - \`\`\` - pnpm add https://pkg.pr.new/${p.name}@${number} - \`\`\``).join('\n')} + const body = (number) => `${bot_comment_identifier} - [Open Playground](https://svelte.dev/playground?version=pr-${number}) - `; + [Playground](https://svelte.dev/playground?version=pr-${number}) - const bot_comment_identifier = `## \`pkg.pr.new\``; + \`\`\` + ${output.packages.map((p) => `pnpm add https://pkg.pr.new/${p.name}@${number}`).join('\n')} + \`\`\` + `; async function find_bot_comment(issue_number) { if (!issue_number) return null;