Skip to content

Commit 2a93a61

Browse files
committed
Clarify analysis log with LLM cap when --limit is provided
1 parent ec24f45 commit 2a93a61

File tree

1 file changed

+6
-1
lines changed
  • docusaurus/scripts/strapi-release-analyzer

1 file changed

+6
-1
lines changed

docusaurus/scripts/strapi-release-analyzer/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,12 @@ async function main() {
886886
console.log(`📚 Loaded docs index from ${llmsIndex.source} (${llmsIndex.pages.length} pages)`);
887887
}
888888

889-
console.log(`\n📝 Analyzing ${releaseInfo.prNumbers.length} PRs...\n`);
889+
const totalPRs = releaseInfo.prNumbers.length;
890+
if (OPTIONS.limit && OPTIONS.limit > 0) {
891+
console.log(`\n📝 Analyzing ${totalPRs} PRs (LLM on up to ${OPTIONS.limit} of ${totalPRs})...\n`);
892+
} else {
893+
console.log(`\n📝 Analyzing ${totalPRs} PRs...\n`);
894+
}
890895

891896
const analyses = [];
892897
let skipped = 0;

0 commit comments

Comments
 (0)