From 77c8747753a7186cf3e92f04c272b071b77cb1d4 Mon Sep 17 00:00:00 2001 From: Rob Young Date: Tue, 2 Mar 2021 11:41:59 +0000 Subject: [PATCH] Fix typo from #117 I accidentally removed two lines I did not intend to. This would only break for PRs opened on the repo directly. --- .github/workflows/pull-request-test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pull-request-test.yml b/.github/workflows/pull-request-test.yml index 3bceaba..df3dd7c 100644 --- a/.github/workflows/pull-request-test.yml +++ b/.github/workflows/pull-request-test.yml @@ -20,6 +20,10 @@ jobs: 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') { console.log('Not attempting to write comment on PR from fork'); } else {