Skip to content

Commit

Permalink
feat: add support for pull_request_target and only-new-issues (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
kovetskiy committed Apr 25, 2024
1 parent d6238b0 commit bf6479d
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/run/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/run.ts
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 bf6479d

Please sign in to comment.