Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

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

- Print snapshot URL after successful upload ([#3167](https://github.com/getsentry/sentry-cli/pull/3167)).

## 3.2.3

### Experimental Feature 🧑‍🔬 (internal-only)
Expand Down
1 change: 1 addition & 0 deletions src/api/data_types/snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use serde::{Deserialize, Serialize};
pub struct CreateSnapshotResponse {
pub artifact_id: String,
pub image_count: u64,
pub snapshot_url: Option<String>,
}

// Keep in sync with https://github.com/getsentry/sentry/blob/master/src/sentry/preprod/snapshots/manifest.py
Expand Down
8 changes: 8 additions & 0 deletions src/commands/build/snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
}
);

if let Some(url) = &response.snapshot_url {
println!(
"{} View snapshots at {}",
style(">").dim(),
style(url).cyan()
);
}

Ok(())
}

Expand Down