diff --git a/connectors/src/connectors/github/lib/github_api.ts b/connectors/src/connectors/github/lib/github_api.ts index 1d572177047f..c9bff8346e46 100644 --- a/connectors/src/connectors/github/lib/github_api.ts +++ b/connectors/src/connectors/github/lib/github_api.ts @@ -641,14 +641,14 @@ export async function processRepository({ "Retrieved repository info" ); - // `data.size` is the whole repo size in KB, we use it to filter repos > 2GB download size. There + // `data.size` is the whole repo size in KB, we use it to filter repos > 10GB download size. There // is further filtering by file type + for "extracted size" per file to 1MB. - if (data.size > 2 * 1024 * 1024) { + if (data.size > 10 * 1024 * 1024) { // For now we throw an error, we'll figure out as we go how we want to handle (likely a typed // error to return a syncFailed to the user, or increase this limit if we want some largers // repositories). throw new Error( - `Repository is too large to sync (size: ${data.size}KB, max: 2GB)` + `Repository is too large to sync (size: ${data.size}KB, max: 10GB)` ); }