iamnbutler/shelfgoblin

iamnbutler/shelfgoblin

Public

Add deploy guard to fail build on insufficient data volume (#59)

Validates fetched book counts before writing JSON files to prevent
silently deploying incomplete data when the Audible API returns errors.
Two checks: minimum absolute count (50) for current/past years, and
a 50% drop threshold compared to the previously committed data file.

Closes #4

Co-authored-by: Tasks Agent <tasks@localhost>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
C4TANBNate Butler and 2 others authored committed by GitHub
aae3e99Patch
Parente1651d0
1 file changed+29-1
StackedSplit
scripts/fetch-data.js+29 โˆ’1