This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
fix(release): make missing git remote for set-commits --auto actionable - #1474
Merged
Merged
Conversation
When set-commits runs in --auto mode from a git checkout with no 'origin' remote (e.g. a fresh `git init`), setCommitsAuto threw a terse ValidationError. Consumers such as the bundler plugins re-log the wrapped error with a full stack, even though this is an expected precondition. Surface an actionable ValidationError (still exit 21, field "repository", rendered via format() with no stack) that explains --auto needs an origin remote and points to --local / --commit. The field is preserved so default mode still falls back to local git history. Fixes #1462
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
approved these changes
Aug 25, 2026
JPeer264
approved these changes
Aug 25, 2026
5 tasks
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
set-commits --automatches the localoriginremote against your Sentry repositories. When run from a git checkout with nooriginremote (e.g. a freshgit init),setCommitsAutothrew a terseValidationError, and consumers like the bundler plugins re-log the wrapped error with a full stack — noisy for what is an expected precondition.This surfaces an actionable
ValidationErrorinstead: it explains that--autoneeds anoriginremote and points to--local/--commit. It stays aCliError(exit 21, rendered viaformat()— no stack trace) and keepsfield: "repository", so default mode still falls back to local git history.Testing
vitest run test/lib/api/releases.test.ts test/commands/release/set-commits.test.ts— 36 passing. Fulltsc/biomefail only on pre-existing missing codegen artifacts and an unrelated Biome INTERNAL error informatters/output.ts, neither touched here.Closes #1462