Skip to content

Commit 2be9acd

Browse files
kovetskiyldez
authored andcommitted
add support for pull_request_target
Signed-off-by: Egor Kovetskiy <[email protected]>
1 parent d6238b0 commit 2be9acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function fetchPatch(): Promise<string> {
3232
}
3333

3434
const ctx = github.context
35-
if (ctx.eventName !== `pull_request`) {
35+
if (ctx.eventName !== `pull_request` && ctx.eventName !== `pull_request_target`) {
3636
core.info(`Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ctx.eventName}`)
3737
return ``
3838
}

0 commit comments

Comments
 (0)