mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(github): check push watch paths against the net change of the push
Closes #10937 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2db26e88ab
commit
19430b461a
@@ -417,7 +417,12 @@ function getGithubCommitRangeFiles(?GithubApp $source, string $owner, string $re
|
||||
return null;
|
||||
}
|
||||
|
||||
return $files->pluck('filename')->filter()->values()->toArray();
|
||||
// A renamed file also changes its previous path.
|
||||
return $files->flatMap(fn (mixed $file): array => [data_get($file, 'filename'), data_get($file, 'previous_filename')])
|
||||
->filter(fn (mixed $filename): bool => is_string($filename) && $filename !== '')
|
||||
->unique()
|
||||
->values()
|
||||
->toArray();
|
||||
} catch (Exception $e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user