mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-24 03:18:02 +02:00
Add support for pull_request_target (#30)
Complements previous commit: - adds modified index.js - bumps version to 2.2.1
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -4538,7 +4538,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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user