fix(issue): use correct fallback for unrecognized alias-suffix inputs#72
Merged
fix(issue): use correct fallback for unrecognized alias-suffix inputs#72
Conversation
Contributor
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Issue
Other
Bug Fixes 🐛Issue
Other
Documentation 📚
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
Contributor
Codecov Results 📊✅ Patch coverage is 100.00%. Project has 1775 uncovered lines. Files with missing lines (22)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
- Coverage 63.80% 62.56% -1.24%
==========================================
Files 35 40 +5
Lines 3956 4741 +785
Branches 0 0 —
==========================================
+ Hits 2524 2966 +442
- Misses 1432 1775 +343
- Partials 0 0 —Generated by Codecov Action |
a6c2e95 to
bba10b1
Compare
3 tasks
MathurAditya724
added a commit
that referenced
this pull request
Apr 9, 2026
Closes getsentry/cli-init-api#72 The server-side AI codemod planner generates .env.sentry-build-plugin with an empty SENTRY_AUTH_TOKEN= because it never has access to the user's auth token (by design — the token is only used as an HTTP Authorization header). This change makes the CLI fill in the token client-side during patchset application. When a created env file contains an empty SENTRY_AUTH_TOKEN=, the locally-available auth token is injected before writing to disk. The token never leaves the client.
MathurAditya724
added a commit
that referenced
this pull request
Apr 10, 2026
…706) ## Summary - Threads the auth token from `wizard-runner.ts` through to `local-ops.ts` via a new `authToken` field on `WizardOptions` - During patchset application, when the server creates an env file with an empty `SENTRY_AUTH_TOKEN=`, the CLI injects the locally-available auth token before writing to disk - Token injection only applies to `.env*` files and only fills in empty values — non-empty values are never overwritten - The auth token never leaves the client (not sent to the server workflow) Closes getsentry/cli-init-api#72
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.
Fixes issue ID resolution for standard short IDs like CRAFT-G when the prefix is not a known alias. The fallback now correctly calls resolveFullShortId instead of resolveShortSuffixId.