feat: implement gh sync extension - #1
Merged
Merged
Conversation
wassimk
force-pushed
the
wm/initial-implementation
branch
2 times, most recently
from
February 22, 2026 05:05
55076ec to
4263574
Compare
Fetch from the primary remote, fast-forward outdated branches, warn about unpushed work, and clean up branches whose upstream was deleted after merging or squash-merging into the default branch. Includes --verbose and --color flags, comprehensive test coverage, and CI workflows for testing and precompiled releases.
wassimk
force-pushed
the
wm/initial-implementation
branch
from
February 22, 2026 05:11
4263574 to
88da099
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
gh syncas aghCLI extension that fetches from the primary remote, fast-forwards outdated branches, warns about unpushed work, and cleans up branches whose upstream was deleted after merging or squash-merging--verboseflag, squash-merge detection viacommit-tree/cherry, implicit upstream matching by branch name, and auto-detected color outputTest plan
go buildcompiles without errorsgo test ./...passes all tests (unit + integration)./gh-sync --helpshows usage./gh-sync --verboseruns correctly in a real repogh extension install .installs successfullygh syncworks end-to-end in a real repo with branches in various states