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

2
dist/index.js vendored
View file

@ -4582,7 +4582,7 @@ function getConfigFileContent(configPath) {
}
function getChangedFiles(token) {
return __awaiter(this, void 0, void 0, function* () {
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;
return token ? yield getChangedFilesFromApi(token, pr) : yield getChangedFilesFromGit(pr.base.sha);
}