Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77c8747

Browse files
committed
Fix typo from actions#117
I accidentally removed two lines I did not intend to. This would only break for PRs opened on the repo directly.
1 parent e86864d commit 77c8747

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/pull-request-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
issue_number: context.payload.number,
2121
})
2222
23+
// Find any comment already made by the bot.
24+
const botComment = comments.find(comment => comment.user.id === 41898282)
25+
const commentBody = "Hello from actions/github-script! (${{ github.sha }})"
26+
2327
if (context.payload.pull_request.head.repo.full_name !== 'actions/github-script') {
2428
console.log('Not attempting to write comment on PR from fork');
2529
} else {

0 commit comments

Comments
 (0)