Merge pull request #121 from robyoung/fix-previous-broken-pr

Fix typo from #117
This commit is contained in:
Josh Gross 2021-03-03 15:31:04 -05:00 committed by GitHub
commit 3d069b2f0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,10 @@ jobs:
issue_number: context.payload.number, issue_number: context.payload.number,
}) })
// Find any comment already made by the bot.
const botComment = comments.find(comment => comment.user.id === 41898282)
const commentBody = "Hello from actions/github-script! (${{ github.sha }})"
if (context.payload.pull_request.head.repo.full_name !== 'actions/github-script') { if (context.payload.pull_request.head.repo.full_name !== 'actions/github-script') {
console.log('Not attempting to write comment on PR from fork'); console.log('Not attempting to write comment on PR from fork');
} else { } else {