Merge branch 'master' into develop

This commit is contained in:
Michal Dorner 2020-08-14 22:03:31 +02:00
commit 483986d0a7
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
4 changed files with 7 additions and 4 deletions

View file

@ -64,7 +64,7 @@ function getConfigFileContent(configPath: string): string {
}
async function getChangedFiles(token: string): Promise<File[] | 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') {