diff --git a/ci/github-script/commits.js b/ci/github-script/commits.js index f0d5da6c20ed..5a0d46995920 100644 --- a/ci/github-script/commits.js +++ b/ci/github-script/commits.js @@ -290,7 +290,7 @@ export default async ({ github, context, core, dry, cherryPicks }) => { // that's too long. We think this is unlikely to happen, and so don't deal with it explicitly. const truncated = [] let total_length = 0 - for (line of diff) { + for (const line of diff) { total_length += line.length if (total_length > 10000) { truncated.push('', '[...truncated...]')