Skip to content

Fix stale bounty cache detection - #127

Open
huangse199 wants to merge 2 commits into
tscircuit:mainfrom
huangse199:cherrycashpilot/issue-10-fresh-bounty-cache
Open

Fix stale bounty cache detection#127
huangse199 wants to merge 2 commits into
tscircuit:mainfrom
huangse199:cherrycashpilot/issue-10-fresh-bounty-cache

Conversation

@huangse199

Copy link
Copy Markdown

Summary

  • Extract bounty amounts from /bounty $... text, $... labels, and Algora bot comments.
  • Keep the bounty filter useful when issue bodies omit the bounty command but Algora comments or labels contain the amount.
  • Reduce the page revalidation interval from 1 hour to 5 minutes so bounty data refreshes sooner.

Verification

  • ./node_modules/.bin/biome.cmd check app/page.tsx lib/github.ts package.json
  • ./node_modules/.bin/tsc.cmd --noEmit --ignoreDeprecations 5.0
  • git diff --check
  • npm run build passed; Next reported transient GitHub fetch-cache ECONNRESET warnings after successful page generation.

/claim #10

Detect bounty amounts from labels and Algora comments when issue bodies omit the bounty command, and reduce page revalidation so cached bounty data stays fresher.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

@huangse199 is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

Recognize label/body/comment formats like "$300 bounty" and "bounty ... $300" so bounty issues stay visible even when they do not use the exact /bounty syntax.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@huangse199

Copy link
Copy Markdown
Author

Added one more follow-up fix on this PR branch to make bounty amount detection less brittle.

What changed:

  • recognizes formats like $300 bounty
  • recognizes formats like bounty ... $300
  • still supports /bounty $300
  • allows nullable label names from the GitHub API
  • checks title + body together, then labels, then comments, and keeps the highest detected amount

Validation:

  • biome check lib/github.ts app/page.tsx passed
  • tsc --noEmit passed
  • next build compiled and type-checked successfully, but static generation did not complete because the build hit GitHub API/network failures (ECONNRESET / rate-limit style fetch failures) while fetching live issue data.

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