-
-
Notifications
You must be signed in to change notification settings - Fork 2
refactor: move feedback and upgrade under sentry cli command
#154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Group CLI meta-commands under a new `cli` subcommand to avoid collision with the existing Sentry Feedback feature (user feedback on issues). Commands changed: - `sentry feedback` → `sentry cli feedback` - `sentry upgrade` → `sentry cli upgrade` - Removed `sentry update` alias
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
Documentation 📚
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
|
Codecov Results 📊✅ Patch coverage is 100.00%. Project has 1964 uncovered lines. Files with missing lines (28)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 68.30% 69.39% +1.09%
==========================================
Files 55 56 +1
Lines 6395 6416 +21
Branches 0 0 —
==========================================
+ Hits 4368 4452 +84
- Misses 2027 1964 -63
- Partials 0 0 —Generated by Codecov Action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
test/commands/cli.test.ts
Outdated
| describe("cliRoute", () => { | ||
| test("is exported and defined", () => { | ||
| expect(cliRoute).toBeDefined(); | ||
| }); | ||
| }); | ||
|
|
||
| describe("feedbackCommand", () => { | ||
| test("is exported and defined", () => { | ||
| expect(feedbackCommand).toBeDefined(); | ||
| }); | ||
| }); | ||
|
|
||
| describe("upgradeCommand", () => { | ||
| test("is exported and defined", () => { | ||
| expect(upgradeCommand).toBeDefined(); | ||
| }); | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are silly tests. Use e2e tests for these.
|
Removed the trivial 'is exported and defined' tests as suggested. The file now only contains functional unit tests for command behavior. |
Summary
Group CLI meta-commands under a new
clisubcommand to avoid collision with the existing Sentry Feedback feature (user feedback on issues).Changes
Commands:
sentry feedback→sentry cli feedbacksentry upgrade→sentry cli upgradesentry updatealiasFiles:
src/commands/cli/withindex.ts,feedback.ts,upgrade.tssrc/app.tsto usecliRoutecommands/cli/, SKILL.md files)Breaking Changes
Users will need to use
sentry cli feedbackandsentry cli upgradeinstead of the old top-level commands.