From 50212c96c805bbdb40f17c5b2a36448c12b45ba2 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Mon, 8 Mar 2021 19:14:20 -0500 Subject: [PATCH] Dont need event --- dist/index.js | 2 +- src/buildExec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index c031b7fcd..186572b89 100644 --- a/dist/index.js +++ b/dist/index.js @@ -59628,7 +59628,7 @@ var buildExec = function () { } else if ("" + context.eventName == 'pull_request' || "" + context.eventName == 'pull_request_target') { - execArgs.push('-C', "" + context.event.pull_request.head.sha); + execArgs.push('-C', "" + context.pull_request.head.sha); } if (overridePr) { execArgs.push('-P', "" + overridePr); diff --git a/src/buildExec.ts b/src/buildExec.ts index a359ff3e8..fcb92738c 100644 --- a/src/buildExec.ts +++ b/src/buildExec.ts @@ -137,7 +137,7 @@ const buildExec = () => { `${context.eventName}` == 'pull_request' || `${context.eventName}` == 'pull_request_target' ) { - execArgs.push('-C', `${context.event.pull_request.head.sha}`); + execArgs.push('-C', `${context.pull_request.head.sha}`); } if (overridePr) { execArgs.push('-P', `${overridePr}`);