From 61d8901589966631a2a12f1143f30de25ac8f43f Mon Sep 17 00:00:00 2001 From: Deepak Puthraya Date: Wed, 6 Nov 2019 15:09:08 +0530 Subject: [PATCH] Fix Github action invalid title (#1) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2e9e951d..5d502849 100644 --- a/index.js +++ b/index.js @@ -20,7 +20,7 @@ async function run() { return; } - const title = github.context.payload.title; + const title = github.context.payload.pull_request.title; core.info(`Pull Request title: "${title}"`); // Check if title pass regex const regex = RegExp(core.getInput('regex'));