From af7dfb00a6e10a68a76722542f94c5c98dd2b7a0 Mon Sep 17 00:00:00 2001 From: Jonathan Atiene Date: Sun, 12 May 2024 09:16:39 +0100 Subject: [PATCH] fix bugs --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8b8ae15..82e1998 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,10 +31,10 @@ export async function run(): Promise { try { const githubContext = github.context - console.log(githubContext, 'githubContext') + console.log(githubContext.payload.pull_request?.number, 'githubContext') const pullRequestNumber = githubContext.payload.pull_request?.number - if (!pullRequestNumber || !githubContext.payload) { + if (!pullRequestNumber) { Logger.warn('Could not get pull request number from context, exiting') return }