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 committed Jun 22, 2022
1 parent 422f985 commit 0c2ec27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/post_run/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66914,7 +66914,7 @@ 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 ``;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/run/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66914,7 +66914,7 @@ 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 ``;
}
Expand Down
2 changes: 1 addition & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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 0c2ec27

Please sign in to comment.