Skip to content

Commit

Permalink
fix(deploys): Use --project argument (#1930)
Browse files Browse the repository at this point in the history
This commit fixes the deploys new command to use the --project argument. Previously, the --project argument was ignored; now, any projects specified with the --project argument are sent to Sentry in the request that creates the deploy (relevant API docs).

ref #1927
  • Loading branch information
szokeasaurusrex authored Feb 6, 2024
1 parent 5d2df27 commit e11e231
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2610,6 +2610,8 @@ pub struct Deploy {
pub started: Option<DateTime<Utc>>,
#[serde(rename = "dateFinished")]
pub finished: Option<DateTime<Utc>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub projects: Option<Vec<String>>,
}

impl Deploy {
Expand Down
1 change: 1 addition & 0 deletions src/commands/deploys/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
env: matches.get_one::<String>("env").unwrap().to_string(),
name: matches.get_one::<String>("name").cloned(),
url: matches.get_one::<String>("url").cloned(),
projects: config.get_projects(matches).ok(),
..Default::default()
};

Expand Down

0 comments on commit e11e231

Please sign in to comment.