fix: ignore prereleases for latest release#79
Conversation
|
Codex review: needs changes before merge. Reviewed June 9, 2026, 1:40 AM ET / 05:40 UTC. Summary Reproducibility: yes. Current main's REST picker filters only drafts and the GraphQL repo summary does not fetch or filter isPrerelease, so a newer non-draft prerelease in the candidate list can be selected as latest. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep the stable-release semantic, but fetch or page enough REST and GraphQL release candidates before filtering and add regression coverage for a stable release beyond the first 20 prereleases. Do we have a high-confidence way to reproduce the issue? Yes. Current main's REST picker filters only drafts and the GraphQL repo summary does not fetch or filter isPrerelease, so a newer non-draft prerelease in the candidate list can be selected as latest. Is this the best way to solve the issue? No, not yet. Filtering prereleases is the right core direction, but the maintainable fix should fetch or page beyond the first 20 candidates before applying that filter. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against a929897f089b. Label changesLabel changes:
Label justifications:
Evidence reviewedAcceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
851857a to
d74c899
Compare
|
Proof:
Implementation note: REST now uses GitHub's stable |
|
Thank you very much Vincent, great contribution! ❤️ |
Summary
isPrereleasein the GraphQL repository summary path.ghql reposnapshot helper and docs so the debug command reports the latest stable release too.Why
Repos with newer prereleases, such as openclaw/openclaw, could show a beta release as the latest release date even when the latest stable release was older.
Validation
git diff --checkswift build --target RepoBarCoreswift build --target repobarcliGITHUB_TOKEN=... npx --yes pnpm@10.33.2 -s ghql repo openclaw/openclawprintsLatest stable release: openclaw 2026.6.1while newer beta releases exist.Not Run
pnpm check: local environment lacksswiftformat/swiftlint../Scripts/test.sh --filter ReleaseSelectionTests --filter GraphQLRepoSummaryParsingTests: local Swift test target compilation failed withno such module Testing../Scripts/build.sh: local app build failed before this change path onSwiftUI.Entrymacro plugin resolution inSources/RepoBar/Support/MenuHighlighting.swift.