File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,22 @@ jobs:
27
27
with :
28
28
github-token : ${{ secrets.GITHUB_TOKEN }}
29
29
script : |
30
+ const fs = require('fs');
31
+ const output = JSON.parse(fs.readFileSync('output.json', 'utf8'));
30
32
33
+ const body = (number)=>`## \`pkg.pr.new\`
31
34
32
- const body = (number)=>`## \`pkg.pr.new\` for ${context.sha.substring(0, 7)}
33
- \`\`\ `
34
- pnpm add https://pkg.pr.new/svelte@${number }
35
+ ${output.packages
36
+ .map((p) => `
37
+ ### ${p.name }
35
38
\`\`\`
39
+ pnpm add https://pkg.pr.new/${p.name}@${number}
40
+ \`\`\``).join('\n')}
36
41
37
42
[Open Playground](https://svelte.dev/playground?version=pr-${number})
38
43
`;
39
44
40
- const bot_comment_identifier = `## \`pkg.pr.new\` for ${context.sha.substring(0, 7)} `;
45
+ const bot_comment_identifier = `## \`pkg.pr.new\``;
41
46
42
47
async function find_bot_comment(issue_number) {
43
48
if (!issue_number) return null;
You can’t perform that action at this time.
0 commit comments