Skip to content

Commit 0c2ec27

Browse files
committed
add support for pull_request_target
Signed-off-by: Egor Kovetskiy <[email protected]>
1 parent 422f985 commit 0c2ec27

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/post_run/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66914,7 +66914,7 @@ function fetchPatch() {
6691466914
return ``;
6691566915
}
6691666916
const ctx = github.context;
66917-
if (ctx.eventName !== `pull_request`) {
66917+
if (ctx.eventName !== `pull_request` && ctx.eventName !== `pull_request_target`) {
6691866918
core.info(`Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ctx.eventName}`);
6691966919
return ``;
6692066920
}

dist/run/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66914,7 +66914,7 @@ function fetchPatch() {
6691466914
return ``;
6691566915
}
6691666916
const ctx = github.context;
66917-
if (ctx.eventName !== `pull_request`) {
66917+
if (ctx.eventName !== `pull_request` && ctx.eventName !== `pull_request_target`) {
6691866918
core.info(`Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ctx.eventName}`);
6691966919
return ``;
6692066920
}

src/run.ts

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

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

0 commit comments

Comments
 (0)