feat(studio): GitHub as roadmap source — Revisão column + PR refs (CS-76 phase B) - #37
Merged
Merged
Conversation
…-76 phase B) - lib/roadmap-github.ts: read origin/main board + open PRs via GitHub API, 60s cache (30s negative cache), 8s timeout, graceful null on any failure - assembleBoard v2: precedence main > open PR > local; open PRs project the local card into the synthetic Revisão column (locked), or synthesize one - annotation satellites: local rows survive promotion; checklist/comments are spliced onto the locked git card (read-only) - prNumber on cards: stamped by roadmap-sync on merge, rendered as a PR link - roadmap-sync now CREATES the git card when missing — the promotion of a locally-planned (Postgres) card into git ownership at merge - UI: origin chips (local/github), Revisão column style, stale-fallback banner, add/drag/drop and column select restricted to local columns - compose: optional GITHUB_TOKEN pass-through (repo is public; token only raises the rate limit) - guard: refuse to prune the local layer on a malformed empty board payload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase B of CS-76: GitHub becomes the source of truth for the git-owned side of the roadmap. The
donearchive is read live fromorigin/mainand a new Revisão column is projected from open PRs — both locked. The local file becomes an offline fallback (amberstalebanner).Changes
lib/roadmap-github.ts: board frommain+ open PRs via GitHub API; 60s cache, 30s negative cache, 8s timeout; every failure degrades to the file fallbackassembleBoardv2 (pure, tested): precedence main > open PR > local; a CS with an open PR projects its local card into Revisão (or synthesizes one from the PR title)prNumber: stamped by the roadmap-sync Action on merge; rendered as a#NNlink to the PR on the cardGITHUB_TOKENpass-through (repo is public — token only raises the rate limit)Live self-test
This PR itself should appear in the Revisão column of the Studio board while it is open — the feature demonstrating itself.
Checklist
References
CS-76 (phase B of 3 — phase C: server-side enforcement + AGENTS.md update)