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'));