File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -30,19 +30,16 @@ jobs:
30
30
const fs = require('fs');
31
31
const output = JSON.parse(fs.readFileSync('output.json', 'utf8'));
32
32
33
- const body = (number)=>`## \` pkg.pr.new\`
33
+ const bot_comment_identifier = `<!-- pkg.pr.new comment -->`;
34
34
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}
41
36
42
- [Open Playground](https://svelte.dev/playground?version=pr-${number})
43
- `;
37
+ [Playground](https://svelte.dev/playground?version=pr-${number})
44
38
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
+ `;
46
43
47
44
async function find_bot_comment(issue_number) {
48
45
if (!issue_number) return null;
You can’t perform that action at this time.
0 commit comments