Skip to content

Commit fb68c5f

Browse files
committed
tweak comment
1 parent 2dced87 commit fb68c5f

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/pkg.pr.new.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,16 @@ jobs:
3030
const fs = require('fs');
3131
const output = JSON.parse(fs.readFileSync('output.json', 'utf8'));
3232
33-
const body = (number)=>`## \`pkg.pr.new\`
33+
const bot_comment_identifier = `<!-- pkg.pr.new comment -->`;
3434
35-
${output.packages
36-
.map((p) => `
37-
### ${p.name}
38-
\`\`\`
39-
pnpm add https://pkg.pr.new/${p.name}@${number}
40-
\`\`\``).join('\n')}
35+
const body = (number) => `${bot_comment_identifier}
4136
42-
[Open Playground](https://svelte.dev/playground?version=pr-${number})
43-
`;
37+
[Playground](https://svelte.dev/playground?version=pr-${number})
4438
45-
const bot_comment_identifier = `## \`pkg.pr.new\``;
39+
\`\`\`
40+
${output.packages.map((p) => `pnpm add https://pkg.pr.new/${p.name}@${number}`).join('\n')}
41+
\`\`\`
42+
`;
4643
4744
async function find_bot_comment(issue_number) {
4845
if (!issue_number) return null;

0 commit comments

Comments
 (0)