mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
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.
This commit is contained in:
parent
e86864dfd7
commit
77c8747753
1 changed files with 4 additions and 0 deletions
4
.github/workflows/pull-request-test.yml
vendored
4
.github/workflows/pull-request-test.yml
vendored
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue