diff --git a/src/api.rs b/src/api.rs index 5a5d9602c4..33ee5dfaeb 100644 --- a/src/api.rs +++ b/src/api.rs @@ -2610,6 +2610,8 @@ pub struct Deploy { pub started: Option>, #[serde(rename = "dateFinished")] pub finished: Option>, + #[serde(skip_serializing_if = "Option::is_none")] + pub projects: Option>, } impl Deploy { diff --git a/src/commands/deploys/new.rs b/src/commands/deploys/new.rs index f289fc81b2..8188785d65 100644 --- a/src/commands/deploys/new.rs +++ b/src/commands/deploys/new.rs @@ -71,6 +71,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> { env: matches.get_one::("env").unwrap().to_string(), name: matches.get_one::("name").cloned(), url: matches.get_one::("url").cloned(), + projects: config.get_projects(matches).ok(), ..Default::default() };