diff --git a/CHANGELOG.md b/CHANGELOG.md index 53db2b04e5..76313397ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/api/data_types/snapshots.rs b/src/api/data_types/snapshots.rs index 40d73354c6..c4f8f0946c 100644 --- a/src/api/data_types/snapshots.rs +++ b/src/api/data_types/snapshots.rs @@ -10,6 +10,7 @@ use serde::{Deserialize, Serialize}; pub struct CreateSnapshotResponse { pub artifact_id: String, pub image_count: u64, + pub snapshot_url: Option, } // Keep in sync with https://github.com/getsentry/sentry/blob/master/src/sentry/preprod/snapshots/manifest.py diff --git a/src/commands/build/snapshots.rs b/src/commands/build/snapshots.rs index 2ded836073..89f2d387c4 100644 --- a/src/commands/build/snapshots.rs +++ b/src/commands/build/snapshots.rs @@ -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(()) }