From 488f8cfdc8c2d45827b619e1db83fb1e717d99f3 Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Thu, 2 Apr 2020 05:37:29 -0400 Subject: [PATCH] payload -> event --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 3248bd40..3ab6abfa 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,11 +7,11 @@ async function run() { const github_token = core.getInput('GITHUB_TOKEN'); const context = github.context; - if (context.payload.issue == null) { + if (context.event.issue == null) { core.setFailed('No issue found.'); return; } - const issue_number = context.payload.issue.number; + const issue_number = context.event.issue.number; const octokit = new github.GitHub(github_token); const new_comment = octokit.issues.createComment({