Skip to content

Commit bd971de

Browse files
authored
Update secure_assets.yml
1 parent 632f30b commit bd971de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/secure_assets.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ jobs:
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

0 commit comments

Comments
 (0)