Files
craft-launcher/docs
fc803fa71f Include pre-releases no longer asks GitHub about every app on every check (#1602)
* Include pre-releases no longer asks GitHub about every app on every check

With pre-releases on, the release feed was skipped and every app went to
GitHub's API on each 12-minute check, about 95 requests an hour against
GitHub's limit of 60 per network address. The feed is now fetched as usual,
GitHub keeps to the fallback's pace (hourly per app once loaded), and a newer
stable release in the feed replaces a saved older beta or RC between asks.

Adds docs/github-budget.md (spec and plan for #713) and the glossary terms.

Part of #713.

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

* Pre-releases on: show the feed's stable release while GitHub has nothing saved

Between GitHub's asks, an app with no saved GitHub answer for the
pre-release track (pre-releases just turned on) showed nothing until
GitHub's next turn, though the feed listed its stable release
(CodeRabbit on #1602).

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

* Pre-releases: test the check plan's hourly pace, and ask again when the setting changes

The last-asked record is now keyed by app and pre-release setting, so an answer under one
setting doesn't stand in for the other. check_plan's feed decision moves into remote_plan so a
test can drive it without a live feed.

* Releases: keep the pre-release cache when a stable save uses the same repo

The cache stored one row per repository, so a stable-only GitHub save replaced the
pre-release answer. Each setting now has its own key (repo and repo+pre); a file written
when there was only one row still loads, and the other setting is moved aside instead of
being evicted.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-25 01:17:15 +01:00
..