We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0fb054 commit 25d8a9bCopy full SHA for 25d8a9b
.github/workflows/broken-links.yml
@@ -42,12 +42,13 @@ jobs:
42
with:
43
script: |
44
const report = process.env.REPORT;
45
- const body = process.env.broken_links === 'true'
+ const brokenLinks = process.env.broken_links === 'true';
46
+ const body = brokenLinks
47
? `### ⚠️ Broken Links Found\nHi @GarlicRot, the following broken links were detected:\n\`\`\`\n${report}\n\`\`\`\nPlease address them!`
48
: `### ✅ All Links Valid\nHi @GarlicRot, all links in the README are valid! Great job!`;
49
await github.rest.issues.createComment({
50
owner: context.repo.owner,
51
repo: context.repo.repo,
- issue_number: context.runId,
52
- body,
+ issue_number: context.payload.head_commit.id,
53
+ body: body,
54
});
0 commit comments