diff --git a/src/VCS/Adapter/Git/GitHub.php b/src/VCS/Adapter/Git/GitHub.php index 1af30388..e23584a8 100644 --- a/src/VCS/Adapter/Git/GitHub.php +++ b/src/VCS/Adapter/Git/GitHub.php @@ -713,7 +713,10 @@ public function getPullRequestFiles(string $owner, string $repositoryName, int $ ]); $files = $response['body'] ?? []; - $allFiles = array_merge($allFiles, $files); + foreach ($files as $file) { + unset($file['patch']); + $allFiles[] = $file; + } if (\count($files) < $perPage) { break;