mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-07 16:49:03 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
483986d0a7
4 changed files with 7 additions and 4 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue