Skip to content

Commit

Permalink
Update main.ts (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson authored Aug 13, 2020
1 parent e1ae988 commit b365bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function getConfigFileContent(configPath: string): string {
}

async function getChangedFiles(token: string): Promise<string[] | null> {
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') {
Expand Down

0 comments on commit b365bd8

Please sign in to comment.