Skip to content

fix: assorted bug fixes and comment corrections#211

Open
MarshallOfSound wants to merge 4 commits intomainfrom
fix/misc-bugs-and-comments
Open

fix: assorted bug fixes and comment corrections#211
MarshallOfSound wants to merge 4 commits intomainfrom
fix/misc-bugs-and-comments

Conversation

@MarshallOfSound
Copy link
Member

Summary

  • Fix October history links: Zero-padding logic checked monthIndex < 10 but output monthIndex + 1, so October (index 9) produced 010 instead of 10, breaking all October calendar links
  • Guard getLatestReleases against empty data: Replace non-null assertions with optional chaining and add an early return when no nightly/stable release exists, preventing server crashes if the upstream API returns empty
  • Guard backport comment parsing: Replace brittle split('#')[1] with a regex match and add a safe fallback when no PR number can be extracted, preventing NaN from being passed to the GitHub API
  • Fix misleading cache TTL comments: Comments said "10 seconds" when values were 10 minutes, staleTtl comments were inaccurate, and fix "mineutes" typo

🤖 Generated with Claude Code

MarshallOfSound and others added 4 commits March 1, 2026 01:51
The zero-padding logic checked `monthIndex < 10` but outputs
`monthIndex + 1`, so October (monthIndex=9) produced `/history/2025-010-15`
instead of `/history/2025-10-15`, resulting in broken links.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace non-null assertions with optional chaining and add an early
return when no nightly or stable release is found. Prevents a server
crash if the upstream releases API returns an empty array.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace brittle split('#')[1] with a regex match and add a guard
that returns a safe default when no PR number can be extracted,
preventing NaN from being passed to the GitHub API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Comments said "10 seconds" but actual values are 10 minutes.
Also fix staleTtl comments that said "At 9 minutes" when the
staleTtl is only 1 second, and fix "mineutes" typo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant