feat!: manifest v2 schema with remotes and fork workflow support#333
Merged
laynepenney merged 2 commits intomainfrom Feb 20, 2026
Merged
feat!: manifest v2 schema with remotes and fork workflow support#333laynepenney merged 2 commits intomainfrom
laynepenney merged 2 commits intomainfrom
Conversation
…kflow support BREAKING CHANGE: Manifest schema updated to v2. - Rename `default_branch` to `revision` (aligns with git-repo terminology) - `target` is now a branch name only (e.g. `develop`), not `remote/branch` - New `sync_remote` field for fetch/rebase remote (default: `origin`) - New `push_remote` field for push remote (default: `origin`) - New top-level `remotes` section with base fetch URLs for URL derivation - Repos can use `remote: upstream` instead of explicit `url` - `gr sync` auto-configures declared remotes via `ensure_remote_configured` - v1 manifests auto-migrate: `default_branch` aliased, `target` split Closes #332 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
migrate_v1() is already called in parse_raw(), so the second call in parse() was a harmless no-op (guarded by version check) but unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
default_branchtorevision(aligns with git-repo terminology)targetis now branch-only (notremote/branch), with newsync_remote/push_remotefieldsremotessection for named remotes with base fetch URLsgr syncauto-configures declared remotes (e.g. upstream) in reposTest plan
cargo build— compilescargo test --lib— 521 passed, 0 failedcargo clippy— no new warningscargo fmt— formattedgr pushusespush_remotegr syncconfigures declared remotesCloses #332
🤖 Generated with Claude Code