Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

fix(release): make missing git remote for set-commits --auto actionable - #1474

Merged
jared-outpost[bot] merged 1 commit into
mainfrom
issue-1462-missing-git-remote
Aug 25, 2026
Merged

jared-outpost[bot] merged 1 commit into
mainfrom
issue-1462-missing-git-remote

Conversation

@jared-outpost

@jared-outpost jared-outpost Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

set-commits --auto matches the local origin remote against your Sentry repositories. When run from a git checkout with no origin remote (e.g. a fresh git init), setCommitsAuto threw a terse ValidationError, 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 ValidationError instead: it explains that --auto needs an origin remote and points to --local / --commit. It stays a CliError (exit 21, rendered via format() — no stack trace) and keeps field: "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. Full tsc/biome fail only on pre-existing missing codegen artifacts and an unrelated Biome INTERNAL error in formatters/output.ts, neither touched here.

Closes #1462

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
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cli Ready Ready Preview Aug 25, 2026 10:06am

Request Review

@BYK
BYK marked this pull request as ready for review August 25, 2026 10:07
@BYK
BYK requested a review from JPeer264 August 25, 2026 10:07
@jared-outpost
jared-outpost Bot merged commit d74490e into main Aug 25, 2026
31 checks passed
@jared-outpost
jared-outpost Bot deleted the issue-1462-missing-git-remote branch August 25, 2026 10:15

This branch was successfully deployed

1 active deployment
Preview — 64262c66 Deployed Aug 25, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stack trace on missing git remote for set-commits

2 participants