From 2be9acd8bd9415ab649535a67930887358acc504 Mon Sep 17 00:00:00 2001 From: Egor Kovetskiy Date: Wed, 22 Jun 2022 13:18:03 +0600 Subject: [PATCH 1/2] 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 64e4164618..a721b760d9 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 `` } From 524c90bfdbaf18696046a6f907611adf85eec4be Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Thu, 25 Apr 2024 02:35:29 +0200 Subject: [PATCH 2/2] chore: generate --- dist/post_run/index.js | 2 +- dist/run/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index e51711ce03..91fbc1b387 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -89177,7 +89177,7 @@ async function fetchPatch() { return ``; } 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 ``; } diff --git a/dist/run/index.js b/dist/run/index.js index 7cc8c9a706..6e8230c265 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -89177,7 +89177,7 @@ async function fetchPatch() { return ``; } 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 ``; }