diff --git a/src/main.ts b/src/main.ts index 78c480c..a8c4030 100644 --- a/src/main.ts +++ b/src/main.ts @@ -49,7 +49,7 @@ function getConfigFileContent(configPath: string): string { } async function getChangedFiles(token: string): Promise { - if (github.context.eventName === 'pull_request') { + if (github.context.eventName === 'pull_request' || github.context.eventName === 'pull_request_target') { const pr = github.context.payload.pull_request as Webhooks.WebhookPayloadPullRequestPullRequest return token ? await getChangedFilesFromApi(token, pr) : await getChangedFilesFromGit(pr.base.sha) } else if (github.context.eventName === 'push') {