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:
@@ -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$/),
|
||||
|
||||
Reference in New Issue
Block a user