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 <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-15 23:54:51 +01:00
parent ac96393a12
commit b76bbfb461
@@ -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$/),