fix: prevent upstream tags from polluting origin#165
Merged
anandgupta42 merged 1 commit intomainfrom Mar 15, 2026
Merged
Conversation
Multiple scripts and CI workflows were fetching/pushing tags in ways
that caused ~900 upstream OpenCode tags to leak into our origin remote:
- CI `git fetch upstream` auto-followed tags — added `--no-tags`
- Release scripts used `git push --tags` pushing ALL local tags to
origin — changed to push only the specific new tag
- Release scripts used `git fetch --force --tags` without explicit
remote — added explicit `origin`
- `script/publish.ts` used `--tags` flag — push only `v${version}`
- Docs referenced `git fetch upstream --tags` — fixed to `--no-tags`
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
anandgupta42
added a commit
that referenced
this pull request
Mar 17, 2026
Multiple scripts and CI workflows were fetching/pushing tags in ways
that caused ~900 upstream OpenCode tags to leak into our origin remote:
- CI `git fetch upstream` auto-followed tags — added `--no-tags`
- Release scripts used `git push --tags` pushing ALL local tags to
origin — changed to push only the specific new tag
- Release scripts used `git fetch --force --tags` without explicit
remote — added explicit `origin`
- `script/publish.ts` used `--tags` flag — push only `v${version}`
- Docs referenced `git fetch upstream --tags` — fixed to `--no-tags`
Co-authored-by: Claude Opus 4.6 (1M context) <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.
What does this PR do?
Prevents ~900 upstream OpenCode tags from leaking into our origin remote by scoping all
git fetchandgit pushtag operations.Type of change
Issue for this PR
Closes #164
How did you verify your code works?
--no-tagswhere appropriatev0.1.0(-beta*),v0.2.0,v0.3.0,v0.3.1Checklist
Changes across 6 files:
.github/workflows/ci.ymlgit fetch upstreamauto-follows tags--no-tagssdks/vscode/script/releasegit fetch --force --tags+git push --tagsorigin; push only new taggithub/script/releasescript/publish.tsgit push origin HEAD --tagsv${version}RELEASING.md--tagsscript/upstream/README.mdgit fetch upstream --tags--no-tags🤖 Generated with Claude Code