add support for pull_request_target

Signed-off-by: Egor Kovetskiy <e.kovetskiy@gmail.com>
This commit is contained in:
Egor Kovetskiy 2022-06-22 13:18:03 +06:00 committed by Fernandez Ludovic
parent d6238b002a
commit 2be9acd8bd

View file

@ -32,7 +32,7 @@ async function fetchPatch(): Promise<string> {
} }
const ctx = github.context 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}`) core.info(`Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ctx.eventName}`)
return `` return ``
} }