Skip to content

Commit

Permalink
remove print, add logic to show menu popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Busch committed Mar 26, 2023
1 parent a017708 commit 8c6eddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/api/update_issue_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,5 @@ pub async fn update_issue_status(repo_owner: String, repo_name: String, issue_nu
.send()
.await?;

if response.status().is_success() {
println!("Issue {} successfully.", state);
} else {
println!("Failed to {} issue.", state);
}

Ok(())
}
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
}
},
KeyCode::Char('p') => {
prompt_open = !prompt_open;
if active_open == true {
prompt_open = !prompt_open;
}
}
_ => {}
},
Expand Down

0 comments on commit 8c6eddc

Please sign in to comment.