Skip to content
Draft
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
2 changes: 2 additions & 0 deletions src/api/data_types/chunking/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ pub struct ChunkedBuildRequest<'a> {
pub build_configuration: Option<&'a str>,
#[serde(skip_serializing_if = "Option::is_none")]
pub release_notes: Option<&'a str>,
#[serde(skip_serializing_if = "Option::is_none")]
pub date_built: Option<&'a str>,
#[serde(flatten)]
pub vcs_info: &'a VcsInfo<'a>,
}
Expand Down
9 changes: 9 additions & 0 deletions src/commands/build/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ pub fn make_command(command: Command) -> Command {
.long("release-notes")
.help("The release notes to use for the upload.")
)
.arg(
Arg::new("date_built")
.long("date-built")
.help("The date and time when the build was created (ISO 8601 format with timezone, e.g., '2025-11-26T10:30:00Z')")
)
}

pub fn execute(matches: &ArgMatches) -> Result<()> {
Expand Down Expand Up @@ -280,6 +285,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {

let build_configuration = matches.get_one("build_configuration").map(String::as_str);
let release_notes = matches.get_one("release_notes").map(String::as_str);
let date_built = matches.get_one("date_built").map(String::as_str);

let api = Api::current();
let authenticated_api = api.authenticated()?;
Expand Down Expand Up @@ -350,6 +356,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
&project,
build_configuration,
release_notes,
date_built,
&vcs_info,
) {
Ok(artifact_url) => {
Expand Down Expand Up @@ -513,6 +520,7 @@ fn upload_file(
project: &str,
build_configuration: Option<&str>,
release_notes: Option<&str>,
date_built: Option<&str>,
vcs_info: &VcsInfo<'_>,
) -> Result<String> {
const SELF_HOSTED_ERROR_HINT: &str = "If you are using a self-hosted Sentry server, \
Expand Down Expand Up @@ -575,6 +583,7 @@ fn upload_file(
chunks: &checksums,
build_configuration,
release_notes,
date_built,
vcs_info,
},
)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ Options:
be used.
--release-notes <release_notes>
The release notes to use for the upload.
--date-built <date_built>
The date and time when the build was created (ISO 8601 format with timezone, e.g.,
'2025-11-26T10:30:00Z')
-h, --help
Print help

Expand Down
Loading