From b76bbfb461a0350f15e15677634ad697c1dd6bde Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Sun, 15 Mar 2026 23:54:51 +0100 Subject: [PATCH] Exclude cli-report files from stale API report detection The runApiExtraction function was detecting cli-report.md files as stale API reports because they matched the report filename pattern. These files are managed by runCliExtraction instead and should be excluded from the stale report check. Signed-off-by: Patrik Oldsberg Made-with: Cursor --- .../src/commands/api-reports/api-reports/runApiExtraction.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/repo-tools/src/commands/api-reports/api-reports/runApiExtraction.ts b/packages/repo-tools/src/commands/api-reports/api-reports/runApiExtraction.ts index 787a2cb3f4..6091237fae 100644 --- a/packages/repo-tools/src/commands/api-reports/api-reports/runApiExtraction.ts +++ b/packages/repo-tools/src/commands/api-reports/api-reports/runApiExtraction.ts @@ -174,6 +174,7 @@ export async function runApiExtraction({ filename => // https://regex101.com/r/QDZIV0/2 filename !== 'knip-report.md' && + !filename.startsWith('cli-report') && !filename.endsWith('.sql.md') && // this has to temporarily match all old api report formats filename.match(/^.*?(api-)?report(-[^.-]+)?(.*?)\.md$/),