File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
tests/integration/_cases/releases Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -2054,8 +2054,6 @@ pub struct UpdatedRelease {
2054
2054
pub projects : Option < Vec < String > > ,
2055
2055
#[ serde( skip_serializing_if = "Option::is_none" ) ]
2056
2056
pub url : Option < String > ,
2057
- #[ serde( rename = "dateStarted" , skip_serializing_if = "Option::is_none" ) ]
2058
- pub date_started : Option < DateTime < Utc > > ,
2059
2057
#[ serde( rename = "dateReleased" , skip_serializing_if = "Option::is_none" ) ]
2060
2058
pub date_released : Option < DateTime < Utc > > ,
2061
2059
#[ serde( skip_serializing_if = "Option::is_none" ) ]
Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ pub fn make_command(command: Command) -> Command {
20
20
. arg (
21
21
Arg :: new ( "started" )
22
22
. long ( "started" )
23
+ . hide ( true )
23
24
. value_parser ( get_timestamp)
24
25
. value_name ( "TIMESTAMP" )
25
- . help ( "Set the release start date ." ) ,
26
+ . help ( "[DEPRECATED] This value is ignored ." ) ,
26
27
)
27
28
. arg (
28
29
Arg :: new ( "released" )
@@ -38,13 +39,19 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
38
39
let api = Api :: current ( ) ;
39
40
let version = matches. get_one :: < String > ( "version" ) . unwrap ( ) ;
40
41
42
+ if matches. get_one :: < DateTime < Utc > > ( "started" ) . is_some ( ) {
43
+ log:: warn!(
44
+ "The --started flag is deprecated. Its value is ignored, \
45
+ and the argument will be completely removed in a future version."
46
+ ) ;
47
+ }
48
+
41
49
api. authenticated ( ) ?. update_release (
42
50
& config. get_org ( matches) ?,
43
51
version,
44
52
& UpdatedRelease {
45
53
projects : config. get_projects ( matches) . ok ( ) ,
46
54
url : matches. get_one :: < String > ( "url" ) . cloned ( ) ,
47
- date_started : matches. get_one :: < DateTime < Utc > > ( "started" ) . copied ( ) ,
48
55
date_released : Some (
49
56
matches
50
57
. get_one :: < DateTime < Utc > > ( "released" )
Original file line number Diff line number Diff line change 1
1
```
2
- $ sentry-cli releases finalize wat-release --started 1431648100 -- released 1431648000
2
+ $ sentry-cli releases finalize wat-release --released 1431648000
3
3
? success
4
4
Finalized release wat-release
5
5
You can’t perform that action at this time.
0 commit comments