From 2be9acd8bd9415ab649535a67930887358acc504 Mon Sep 17 00:00:00 2001 From: Egor Kovetskiy Date: Wed, 22 Jun 2022 13:18:03 +0600 Subject: [PATCH] add support for pull_request_target Signed-off-by: Egor Kovetskiy --- src/run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.ts b/src/run.ts index 64e4164..a721b76 100644 --- a/src/run.ts +++ b/src/run.ts @@ -32,7 +32,7 @@ async function fetchPatch(): Promise { } const ctx = github.context - if (ctx.eventName !== `pull_request`) { + if (ctx.eventName !== `pull_request` && ctx.eventName !== `pull_request_target`) { core.info(`Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ctx.eventName}`) return `` }