From 87fff2e89192974683dff75f10ae2d2324ace888 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Mon, 8 Mar 2021 19:18:47 -0500 Subject: [PATCH] payload --- 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 186572b89..6d6d54c53 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.pull_request.head.sha); + execArgs.push('-C', "" + context.payload.pull_request.head.sha); } if (overridePr) { execArgs.push('-P', "" + overridePr); diff --git a/src/buildExec.ts b/src/buildExec.ts index fcb92738c..95ff21685 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.pull_request.head.sha}`); + execArgs.push('-C', `${context.payload.pull_request.head.sha}`); } if (overridePr) { execArgs.push('-P', `${overridePr}`);