Skip to content

Commit

Permalink
add support for pull_request_target
Browse files Browse the repository at this point in the history
Signed-off-by: Egor Kovetskiy <e.kovetskiy@gmail.com>
  • Loading branch information
kovetskiy authored and ldez committed Apr 25, 2024
1 parent d6238b0 commit 2be9acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ``
}
Expand Down

0 comments on commit 2be9acd

Please sign in to comment.