feat: add support for pull_request_target and only-new-issues (#506)

This commit is contained in:
Egor Kovetskiy 2024-04-25 01:03:53 +00:00 committed by GitHub
parent d6238b002a
commit bf6479d5ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

2
dist/post_run/index.js generated vendored
View File

@ -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 ``;
}

2
dist/run/index.js generated vendored
View File

@ -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 ``;
}

View File

@ -32,7 +32,7 @@ async function fetchPatch(): Promise<string> {
}
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 ``
}