cargo fmt
This commit is contained in:
parent
6a21576236
commit
e774f83526
1 changed files with 4 additions and 4 deletions
|
@ -269,19 +269,19 @@ async fn create_jira_issue(
|
|||
.json(&issue)
|
||||
.send()
|
||||
.await?;
|
||||
|
||||
|
||||
if !response.status().is_success() {
|
||||
let error_text = response.text().await?;
|
||||
return Err(format!("Failed to create issue: {}", error_text).into());
|
||||
}
|
||||
|
||||
|
||||
let issue_response = response.json::<JiraResponse>().await?;
|
||||
|
||||
|
||||
// Update status if specified (requires a separate API call)
|
||||
if let Some(status) = &metadata.status {
|
||||
update_issue_status(config, &issue_response.key, status).await?;
|
||||
}
|
||||
|
||||
|
||||
Ok(issue_response)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue