Skip to content

Commit

Permalink
payload -> event
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-z authored Apr 2, 2020
1 parent 4749170 commit 488f8cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 488f8cf

Please sign in to comment.