You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The CLI checks the gh floor once and refuses GH_TOO_OLD instead of failing inside a gate #153
A gh older than 2.50.0 (no pr checks --json) is refused up front with a code naming the floor and the installed version, rather than surfacing as a parse error inside task finish or a skipped sweep in milestone close (#149; #119 findings 21, 30). The changelog flips to 1.0.3 in the same PR so the three fold-backs ship together.
Requirements
M6-R6
Plan
gh.Version() in internal/gh: runs gh --version, parses the first line (gh version 2.46.0 (2024-03-…)) into a semantic version; a pure ParseVersion / Compare pair, table-tested — including the -preview/build-suffix shapes and a line that does not parse (which is reported, not treated as too old).
The check runs once, in load() — the path every verb that reads the working repo's .codecrew.yml takes — after the protocol check. Below the floor: refused[GH_TOO_OLD]: gh 2.46.0 installed; CodeCrew needs 2.50.0 or later (gh pr checks --json, cli/cli#9079) — upgrade gh. init and version do not call gh and are not gated; identity new goes through load() like the rest. A gh whose version line cannot be parsed proceeds with a note, so an unexpected build cannot lock the operator out.
Floor as a constant (ghFloor = "2.50.0") beside the check, with a comment naming the feature that set it — the next floor-raising feature changes one line.
Catalogue:GH_TOO_OLD under "any verb that loads .codecrew.yml" in docs/introduction.md, the count goes twenty-two → twenty-three there and in the README, SPEC's verb-table row for that pseudo-verb gains the code (a code added is a minor change under SPEC's semver rule).
None — the floor is measured (cli/cli#9079 shipped in 2.50.0), the code follows the catalogue's conventions, and 1.0.x releases have been cut from the last fold-back PR before (1.0.1, 1.0.2).
Activity
radiusred-cody commentedon Aug 28, 2026
Started by @radiusred-cody[bot].
feat: refuse GH_TOO_OLD below gh 2.50.0 once, up front, instead of fa…
docs: catalogue GH_TOO_OLD, twenty-three codes, and flip the changelo…
style: gofmt the gh version tests (#153)
fix: status and roles meet the gh floor too — the check lives on the …
feat: refuse GH_TOO_OLD below gh 2.50.0 once, up front, instead of fa…
docs: catalogue GH_TOO_OLD, twenty-three codes, and flip the changelo…
style: gofmt the gh version tests (#153)
fix: status and roles meet the gh floor too — the check lives on the …
feat: refuse GH_TOO_OLD below gh 2.50.0 once, up front, instead of fa…
docs: catalogue GH_TOO_OLD, twenty-three codes, and flip the changelo…
style: gofmt the gh version tests (#153)
fix: status and roles meet the gh floor too — the check lives on the …