Summary of What Needs to be Done:
The repo-health route uses 9999 as a sentinel value for no commits. This arbitrary value could conflict with actual valid values and is treated as a valid number in scoring.
Changes that Need to be Made:
- File: src/app/api/metrics/repo-health/route.ts (line 157)
- Return null instead of 9999 when there are no commits
- Update computeHealthScore to handle null daysSinceLastCommit
Impact that it would Provide:
- Clearer semantics for no-commit case
- Prevents incorrect scoring when repo has no commits
Summary of What Needs to be Done:
The repo-health route uses 9999 as a sentinel value for no commits. This arbitrary value could conflict with actual valid values and is treated as a valid number in scoring.
Changes that Need to be Made:
Impact that it would Provide: