Skip to content

Commit 1a9bfe5

Browse files
runningcodeclaude
andauthored
feat: Print snapshot URL after upload (#3167)
## Summary - Adds `snapshot_url` (optional) to `CreateSnapshotResponse` - Prints the snapshot URL after a successful upload so users can navigate directly to it Depends on companion sentry PR: getsentry/sentry#109662 Fixes EME-898 --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c84fd84 commit 1a9bfe5

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Experimental Feature 🧑‍🔬 (internal-only)
6+
7+
- Print snapshot URL after successful upload ([#3167](https://github.com/getsentry/sentry-cli/pull/3167)).
8+
39
## 3.2.3
410

511
### Experimental Feature 🧑‍🔬 (internal-only)

src/api/data_types/snapshots.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use serde::{Deserialize, Serialize};
1010
pub struct CreateSnapshotResponse {
1111
pub artifact_id: String,
1212
pub image_count: u64,
13+
pub snapshot_url: Option<String>,
1314
}
1415

1516
// Keep in sync with https://github.com/getsentry/sentry/blob/master/src/sentry/preprod/snapshots/manifest.py

src/commands/build/snapshots.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
123123
}
124124
);
125125

126+
if let Some(url) = &response.snapshot_url {
127+
println!(
128+
"{} View snapshots at {}",
129+
style(">").dim(),
130+
style(url).cyan()
131+
);
132+
}
133+
126134
Ok(())
127135
}
128136

0 commit comments

Comments
 (0)