feat: multi-target-repo support#5
Open
ub-tech wants to merge 4 commits into
Open
Conversation
New scripts/repo-registry.ts scans REPO_<ALIAS>_URL env vars to build a registry of target repos. Falls back to TARGET_REPO_URL for backward compat. Includes 22 unit tests. Updates .env.example with REPO_* pattern documentation and adds test:registry npm script. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
import-plan-to-linear.ts: validates ticket.repo against registry aliases, scopes overlap detection per-repo, writes ticket-repo-map.json. WORKFLOW.md: hooks resolve repo from ticket-repo-map.json, replace hardcoded your-target-repo with $TARGET_REPO_DIR, add .target-repo-dir sentinel for workspace directory resolution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
/ship: CI command resolution reads REPO_<ALIAS>_CI_COMMANDS, per-repo APPROVAL_REQUIRED_FROM, repo alias in PR body. /plan-eng-review, /plan-ceo-review: auto-discovery reads per-repo doc paths with global fallback. planning-manifest-v2.template.json: add target_repos section. plan-to-linear.md: ticket.repo must match registered alias. kickoff.md: document multi-repo usage pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
README: multi-repo config section with REPO_* variable table, updated workspace directory structure diagram. CLAUDE.md: document multi-repo config pattern and ticket.repo = registry alias contract. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
c5dfe5a to
4f53619
Compare
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
scripts/repo-registry.ts— scansREPO_<ALIAS>_URLenv vars to build a multi-repo registry, with backward compat forTARGET_REPO_URLimport-plan-to-linear.ts— validatesticket.repoagainst registry, per-repo overlap detection, writesticket-repo-map.jsonWORKFLOW.md— hooks resolve repo fromticket-repo-map.json, replace hardcodedyour-target-repowith$TARGET_REPO_DIR, add.target-repo-dirsentinel/ship— CI command resolution readsREPO_<ALIAS>_CI_COMMANDS, per-repoAPPROVAL_REQUIRED_FROM/plan-eng-review,/plan-ceo-review— auto-discovery reads per-repo doc pathsTest plan
repo-registry.ts(multi-repo, backward compat, alias resolution, error cases)REPO_BACKEND_URL+REPO_FRONTEND_URL, runnpx tsx scripts/repo-registry.tsimport-plan-to-linear.ts, verifyticket-repo-map.json🤖 Generated with Claude Code