mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-08 00:59:04 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
483986d0a7
4 changed files with 7 additions and 4 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue