File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2222 const issueOrPrBody = context.payload.issue?.body || context.payload.pull_request?.body || context.payload.comment?.body;
2323 if (issueOrPrBody.includes('/assets')) {
2424 const fs = require('fs');
25- const issueOrPrLink = context.payload.issue?.html_url || context.payload.pull_request?.html_url || context.payload.comment?.html_url;
25+ const author = context.payload.sender.login;
26+ const issueOrPrLink = context.payload.issue?.html_url || context.payload.pull_request?.html_url;
27+ const commentLink = context.payload.comment?.html_url;
2628 const repoName = context.repo.repo;
27- fs.writeFileSync('assets.txt', `Issue /PR link: ${issueOrPrLink}\nRepo name: ${repoName}`);
29+ fs.writeFileSync('assets.txt', `Author: ${author}\nIssue /PR link: ${issueOrPrLink}\nComment link: ${commentLink }\nRepo name: ${repoName}`);
2830 }
2931
3032 - name : Upload assets.txt
You can’t perform that action at this time.
0 commit comments